@ -30,9 +30,9 @@ var syntaxArgs = [
var c = spawnSync ( node , _ args , { encoding : 'utf8' } ) ;
var c = spawnSync ( node , _ args , { encoding : 'utf8' } ) ;
// no output should be produced
// no output should be produced
assert . e qual( c . stdout , '' , 'stdout produced' ) ;
assert . strictE qual( c . stdout , '' , 'stdout produced' ) ;
assert . e qual( c . stderr , '' , 'stderr produced' ) ;
assert . strictE qual( c . stderr , '' , 'stderr produced' ) ;
assert . e qual( c . status , 0 , 'code == ' + c . status ) ;
assert . strictE qual( c . status , 0 , 'code == ' + c . status ) ;
} ) ;
} ) ;
} ) ;
} ) ;
@ -51,13 +51,13 @@ var syntaxArgs = [
var c = spawnSync ( node , _ args , { encoding : 'utf8' } ) ;
var c = spawnSync ( node , _ args , { encoding : 'utf8' } ) ;
// no stdout should be produced
// no stdout should be produced
assert . e qual( c . stdout , '' , 'stdout produced' ) ;
assert . strictE qual( c . stdout , '' , 'stdout produced' ) ;
// stderr should have a syntax error message
// stderr should have a syntax error message
var match = c . stderr . match ( /^SyntaxError: Unexpected identifier$/m ) ;
var match = c . stderr . match ( /^SyntaxError: Unexpected identifier$/m ) ;
assert ( match , 'stderr incorrect' ) ;
assert ( match , 'stderr incorrect' ) ;
assert . e qual( c . status , 1 , 'code == ' + c . status ) ;
assert . strictE qual( c . status , 1 , 'code == ' + c . status ) ;
} ) ;
} ) ;
} ) ;
} ) ;
@ -74,12 +74,12 @@ var syntaxArgs = [
var c = spawnSync ( node , _ args , { encoding : 'utf8' } ) ;
var c = spawnSync ( node , _ args , { encoding : 'utf8' } ) ;
// no stdout should be produced
// no stdout should be produced
assert . e qual( c . stdout , '' , 'stdout produced' ) ;
assert . strictE qual( c . stdout , '' , 'stdout produced' ) ;
// stderr should have a module not found error message
// stderr should have a module not found error message
var match = c . stderr . match ( /^Error: Cannot find module/m ) ;
var match = c . stderr . match ( /^Error: Cannot find module/m ) ;
assert ( match , 'stderr incorrect' ) ;
assert ( match , 'stderr incorrect' ) ;
assert . e qual( c . status , 1 , 'code == ' + c . status ) ;
assert . strictE qual( c . status , 1 , 'code == ' + c . status ) ;
} ) ;
} ) ;
} ) ;
} ) ;