Skip to content

Commit d743caf

Browse files
fixing compilation error
1 parent 5d73941 commit d743caf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/tests/PredicateTest.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Triage cases", () => {
1919
if (output?.status === "Error in the json file.") {
2020
output = undefined;
2121
} else {
22-
result = output?.payload?.find(res => res.type === CxConstants.SAST);
22+
result = output?.payload?.find((res: CxResult) => res.type === CxConstants.SAST);
2323
if (!result?.similarityId) {
2424
output = undefined;
2525
}
@@ -30,7 +30,7 @@ describe("Triage cases", () => {
3030
const scanShow = await auth.scanShow("d4354650-4ee1-4e10-9b1d-0feaf6c187a7");
3131
scan = scanShow?.payload?.pop();
3232
output = await auth.getResultsList(scan.id);
33-
result = output?.payload?.find(res => res.type === CxConstants.SAST);
33+
result = output?.payload?.find((res: CxResult) => res.type === CxConstants.SAST);
3434
}
3535

3636
return { scan, result };

0 commit comments

Comments
 (0)