Skip to content

Commit 663f8a8

Browse files
committed
Test fix: strip npm http debug messages to make it CI-friendly
1 parent 6bb50b2 commit 663f8a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,8 @@ describe('checkDependencies', () => {
910910
// The functions is supposed to not fail because it's instructed to do
911911
// `npm install`/`bower install`.
912912
assert.strictEqual(
913-
read(child.stderr),
913+
// Strip npm http debug messages to make it CI-friendly.
914+
(read(child.stderr) || '').replace(/^npm http .+\n/gm, ''),
914915
[
915916
'jquery: installed: 1.11.1, expected: <=1.11.0',
916917
'json3: installed: 0.8.0, expected: 3.3.2',

0 commit comments

Comments
 (0)