Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit 91c3287

Browse files
committed
Fix deployment test for broken node logs
1 parent 125fd77 commit 91c3287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/deploy.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ test('Should display error log for broken Node.js project', async done => {
601601
// check response
602602
expect(response.statusCode).toEqual(200);
603603
expect(error.message).toEqual('Build failed! See build log for details.');
604-
expect(error.log[0].includes('Step 1/8 : FROM node:latest')).toBeTruthy();
605-
expect(error.log.find(l => l.includes('Step 2/8 : RUN mkdir -p /usr/src/app'))).toBeDefined();
604+
expect(error.log[0].includes('FROM node:latest')).toBeTruthy();
605+
expect(error.log.find(l => l.includes('RUN mkdir -p /usr/src/app'))).toBeDefined();
606606
expect(error.log[error.log.length - 1]).toEqual(
607607
"The command '/bin/sh -c npm install --silent' returned a non-zero code: 1"
608608
);

0 commit comments

Comments
 (0)