mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Curl url with npm package
This commit is contained in:
parent
f655e8cfcb
commit
35beeb55b0
1 changed files with 3 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ describe("E2E: Safe chain proxy", () => {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 500));
|
await new Promise((resolve) => setTimeout(resolve, 500));
|
||||||
try {
|
try {
|
||||||
const curlOutput = container.dockerExec(
|
const curlOutput = container.dockerExec(
|
||||||
"curl -I http://localhost:4873/"
|
"curl -I http://localhost:4873/lodash"
|
||||||
);
|
);
|
||||||
if (curlOutput.includes("200 OK")) {
|
if (curlOutput.includes("200 OK")) {
|
||||||
verdaccioStarted = true;
|
verdaccioStarted = true;
|
||||||
|
|
@ -88,6 +88,8 @@ describe("E2E: Safe chain proxy", () => {
|
||||||
"npm install lodash --registry=http://localhost:4873"
|
"npm install lodash --registry=http://localhost:4873"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log("NPM install output:", result.output);
|
||||||
|
|
||||||
// Check if the installation was successful
|
// Check if the installation was successful
|
||||||
assert(
|
assert(
|
||||||
result.output.includes("added"),
|
result.output.includes("added"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue