deep research addressement
This commit is contained in:
@@ -175,7 +175,7 @@ describe("darkwatch.getExposureDetails", () => {
|
||||
|
||||
describe("darkwatch.runScan", () => {
|
||||
it("triggers a scan", async () => {
|
||||
mockRunScan.mockResolvedValue({ scanId: "s1" });
|
||||
mockRunScan.mockResolvedValue({ scanId: "s1", queued: false });
|
||||
const api = createCaller(makeUser());
|
||||
const result = await api.runScan({});
|
||||
expect(result.scanId).toBe("s1");
|
||||
@@ -184,7 +184,7 @@ describe("darkwatch.runScan", () => {
|
||||
|
||||
describe("darkwatch.getScanStatus", () => {
|
||||
it("returns scan status", async () => {
|
||||
mockGetScanStatus.mockResolvedValue({ status: "idle", startedAt: null, completedAt: null, progress: 0, error: null });
|
||||
mockGetScanStatus.mockResolvedValue({ status: "idle", scanId: null, startedAt: null, completedAt: null, progress: 0, currentSource: null, error: null });
|
||||
const api = createCaller(makeUser());
|
||||
const result = await api.getScanStatus();
|
||||
expect(result.status).toBe("idle");
|
||||
|
||||
Reference in New Issue
Block a user