Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 5a174f4

Browse files
committed
Update expected error message in integration tests
1 parent e36fda3 commit 5a174f4

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
const { scan } = require('../helpers')
1+
const { scan } = require("../helpers");
22

33
test(
4-
"scan without a matching ScanType should be marked as errored",
5-
async () => {
6-
await expect(scan(
7-
"scan-type-not-found",
8-
"this-type-does-not-exists",
9-
[],
10-
30
11-
)).rejects.toThrow(`Scan failed with description "Configured ScanType 'this-type-does-not-exists' not found in Scans Namespace. You'll likely need to deploy the ScanType."`);
12-
},
13-
1 * 60 * 1000
14-
);
4+
"scan without a matching ScanType should be marked as errored",
5+
async () => {
6+
await expect(
7+
scan("scan-type-not-found", "this-type-does-not-exists", [], 30)
8+
).rejects.toThrow(
9+
`Scan failed with description "Configured ScanType 'this-type-does-not-exists' not found in 'integration-tests' namespace. You'll likely need to deploy the ScanType."`
10+
);
11+
},
12+
1 * 60 * 1000
13+
);

0 commit comments

Comments
 (0)