mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix e2e tests
This commit is contained in:
parent
c8df7566b5
commit
77e9d3d843
2 changed files with 2 additions and 6 deletions
|
|
@ -41,9 +41,7 @@ describe("E2E: safe-chain setup-ci command", () => {
|
||||||
const projectShell = await container.openShell(shell);
|
const projectShell = await container.openShell(shell);
|
||||||
const result = await projectShell.runCommand("npm i axios");
|
const result = await projectShell.runCommand("npm i axios");
|
||||||
|
|
||||||
const hasExpectedOutput = result.output.includes(
|
const hasExpectedOutput = result.output.includes("Safe-chain: Scanned");
|
||||||
"Scanning for malicious packages..."
|
|
||||||
);
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
hasExpectedOutput,
|
hasExpectedOutput,
|
||||||
hasExpectedOutput
|
hasExpectedOutput
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,7 @@ describe("E2E: safe-chain setup command", () => {
|
||||||
await projectShell.runCommand("cd /testapp");
|
await projectShell.runCommand("cd /testapp");
|
||||||
const result = await projectShell.runCommand("npm i axios");
|
const result = await projectShell.runCommand("npm i axios");
|
||||||
|
|
||||||
const hasExpectedOutput = result.output.includes(
|
const hasExpectedOutput = result.output.includes("Safe-chain: Scanned");
|
||||||
"Scanning for malicious packages..."
|
|
||||||
);
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
hasExpectedOutput,
|
hasExpectedOutput,
|
||||||
hasExpectedOutput
|
hasExpectedOutput
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue