@@ -83,9 +83,9 @@ test('basic installation', (t) => {
83
83
const stdout = ret [ 1 ]
84
84
const stderr = ret [ 2 ]
85
85
t . equal ( code , 0 , 'command completed without error' )
86
- t . equal ( stdout . trim ( ) , '' , 'no output on stdout ' )
86
+ t . equal ( stderr . trim ( ) , '' , 'no output on stderr ' )
87
87
t . match (
88
- stderr . trim ( ) ,
88
+ stdout . trim ( ) ,
89
89
/ ^ a d d e d 6 p a c k a g e s i n \d + (?: \. \d + ) ? s $ / ,
90
90
'no warnings on stderr, and final output has right number of packages'
91
91
)
@@ -150,9 +150,9 @@ test('supports npm-shrinkwrap.json as well', (t) => {
150
150
const stdout = ret [ 1 ]
151
151
const stderr = ret [ 2 ]
152
152
t . equal ( code , 0 , 'command completed without error' )
153
- t . equal ( stdout . trim ( ) , '' , 'no output on stdout ' )
153
+ t . equal ( stderr . trim ( ) , '' , 'no output on stderr ' )
154
154
t . match (
155
- stderr . trim ( ) ,
155
+ stdout . trim ( ) ,
156
156
/ ^ a d d e d 6 p a c k a g e s i n \d + (?: \. \d + ) ? s $ / ,
157
157
'no warnings on stderr, and final output has right number of packages'
158
158
)
@@ -197,10 +197,8 @@ test('removes existing node_modules/ before installing', (t) => {
197
197
] , EXEC_OPTS ) )
198
198
. then ( ( ret ) => {
199
199
const code = ret [ 0 ]
200
- const stdout = ret [ 1 ]
201
200
const stderr = ret [ 2 ]
202
201
t . equal ( code , 0 , 'command completed without error' )
203
- t . equal ( stdout . trim ( ) , '' , 'no output on stdout' )
204
202
t . match (
205
203
stderr . trim ( ) ,
206
204
/ ^ n p m .* W A R N .* r e m o v i n g e x i s t i n g n o d e _ m o d u l e s / ,
0 commit comments