File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ run.methods.forEach((method) => {
247247 expect ( err . message ) . toMatch ( 'ENOENT' ) ;
248248 expect ( err . message ) . not . toMatch ( 'undefined' ) ;
249249 expect ( err . code ) . toBe ( 'ENOENT' ) ;
250- expect ( err . errno ) . toBe ( 'ENOENT' ) ;
251250 expect ( err . syscall ) . toMatch ( syscall ) ;
252251 expect ( err . syscall ) . not . toMatch ( 'undefined' ) ;
253252 expect ( err . path ) . toMatch ( 'somecommandthatwillneverexist' ) ;
@@ -256,7 +255,7 @@ run.methods.forEach((method) => {
256255
257256 if ( run . isMethodSync ( method ) ) {
258257 it ( 'should fail with ENOENT if the command does not exist' , ( ) => {
259- expect . assertions ( 9 ) ;
258+ expect . assertions ( 8 ) ;
260259
261260 try {
262261 run ( method , 'somecommandthatwillneverexist' , [ 'foo' ] ) ;
@@ -266,7 +265,7 @@ run.methods.forEach((method) => {
266265 } ) ;
267266 } else {
268267 it ( 'should emit `error` and `close` if command does not exist' , async ( ) => {
269- expect . assertions ( 11 ) ;
268+ expect . assertions ( 10 ) ;
270269
271270 await new Promise ( ( resolve , reject ) => {
272271 const promise = run ( method , 'somecommandthatwillneverexist' , [ 'foo' ] ) ;
You can’t perform that action at this time.
0 commit comments