Fix e2e tests

This commit is contained in:
Sander Declerck 2025-11-25 14:56:12 +01:00
parent c8df7566b5
commit 77e9d3d843
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -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