mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix e2e test
This commit is contained in:
parent
35bd3dfb6f
commit
216e16cfb1
1 changed files with 6 additions and 6 deletions
|
|
@ -42,13 +42,13 @@ describe("E2E: safe-chain setup-ci command for pip/pip3", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasExpectedOutput = result.output.includes(
|
const hasExpectedOutput = result.output.includes(
|
||||||
"Scanning for malicious packages..."
|
"no malware found."
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
hasExpectedOutput,
|
hasExpectedOutput,
|
||||||
hasExpectedOutput
|
hasExpectedOutput
|
||||||
? "Expected pip3 command to be wrapped by safe-chain"
|
? "Expected pip3 command to be wrapped by safe-chain"
|
||||||
: `Output did not contain \"Scanning for malicious packages...\": \n${result.output}`
|
: `Output did not contain \"no malware found.\": \n${result.output}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ describe("E2E: safe-chain setup-ci command for pip/pip3", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("Scanning for malicious packages..."),
|
result.output.includes("no malware found."),
|
||||||
`Output did not contain scan message. Output was:\n${result.output}`
|
`Output did not contain scan message. Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
@ -89,7 +89,7 @@ describe("E2E: safe-chain setup-ci command for pip/pip3", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("Scanning for malicious packages..."),
|
result.output.includes("no malware found."),
|
||||||
`Output did not contain scan message. Output was:\n${result.output}`
|
`Output did not contain scan message. Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
@ -110,7 +110,7 @@ describe("E2E: safe-chain setup-ci command for pip/pip3", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("Scanning for malicious packages..."),
|
result.output.includes("no malware found."),
|
||||||
`Output did not contain scan message. Output was:\n${result.output}`
|
`Output did not contain scan message. Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
@ -131,7 +131,7 @@ describe("E2E: safe-chain setup-ci command for pip/pip3", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
result.output.includes("Scanning for malicious packages..."),
|
result.output.includes("no malware found."),
|
||||||
`Output did not contain scan message. Output was:\n${result.output}`
|
`Output did not contain scan message. Output was:\n${result.output}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue