OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
swagger-ui-5.17.14
/
test
/
unit
/
core
/
plugins
/
configs
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:35:04 AM
rwxr-xr-x
📄
actions.js
592 bytes
08/07/2024 04:34:43 AM
rw-r--r--
Editing: actions.js
Close
import { downloadConfig } from "core/plugins/configs/actions" describe("configs plugin - actions", () => { describe("downloadConfig", () => { it("should call the system fetch helper with a provided request", () => { const fetchSpy = jest.fn(async () => {}) const system = { fn: { fetch: fetchSpy } } const req = { url: "http://swagger.io/one", requestInterceptor: a => a, responseInterceptor: a => a, } downloadConfig(req)(system) expect(fetchSpy).toHaveBeenCalledWith(req) }) }) })