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

Commit f01d7d3

Browse files
committed
Fix unit tests
1 parent 98187f4 commit f01d7d3

File tree

2 files changed

+263
-213
lines changed

2 files changed

+263
-213
lines changed

test/logs.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,11 @@ module.exports = (server, token, data) =>
3030
const parts = line.split(/\dZ\s/);
3131
return parts[1].replace(/\sv\d.+/, ''); // strip any versions
3232
});
33-
t.equal(lines[0], 'npm info it worked if it ends with ok');
34-
t.ok(lines[1].startsWith('npm info using npm@'));
35-
t.ok(lines[2].startsWith('npm info using node@'));
3633
t.deepEqual(
37-
lines.slice(3),
38-
[
39-
'npm info lifecycle node-project@1.0.0~prestart: node-project@1.0.0',
40-
'npm info lifecycle node-project@1.0.0~start: node-project@1.0.0',
41-
'',
42-
'> node-project@1.0.0 start /usr/src/app',
43-
'> node index.js',
44-
'',
45-
'Listening on port 80',
46-
],
34+
lines,
35+
['', '> node-project@1.0.0 start /usr/src/app', '> node index.js', '', 'Listening on port 80'],
4736
'Should have correct log'
4837
);
49-
5038
t.end();
5139
});
5240
});

0 commit comments

Comments
 (0)