@@ -35,7 +35,7 @@ tape( 'when invoked with a `--help` flag, the command-line interface prints the
35
35
var expected ;
36
36
var cmd ;
37
37
38
- expected = readFileSync ( resolve ( __dirname , '..' , 'bin ' , 'usage.txt' ) , {
38
+ expected = readFileSync ( resolve ( __dirname , '..' , 'docs ' , 'usage.txt' ) , {
39
39
'encoding' : 'utf8'
40
40
} ) ;
41
41
cmd = [
@@ -61,7 +61,7 @@ tape( 'when invoked with a `-h` flag, the command-line interface prints the help
61
61
var expected ;
62
62
var cmd ;
63
63
64
- expected = readFileSync ( resolve ( __dirname , '..' , 'bin ' , 'usage.txt' ) , {
64
+ expected = readFileSync ( resolve ( __dirname , '..' , 'docs ' , 'usage.txt' ) , {
65
65
'encoding' : 'utf8'
66
66
} ) ;
67
67
cmd = [
@@ -145,7 +145,7 @@ tape( 'the command-line interface reverses a string argument', opts, function te
145
145
146
146
tape ( 'the command-line interface supports use as a standard stream' , opts , function test ( t ) {
147
147
var cmd = [
148
- 'printf foobar' ,
148
+ 'printf " foobar\nlast man standing" ' ,
149
149
'|' ,
150
150
process . execPath ,
151
151
fpath
@@ -157,7 +157,7 @@ tape( 'the command-line interface supports use as a standard stream', opts, func
157
157
if ( error ) {
158
158
t . fail ( error . message ) ;
159
159
} else {
160
- t . strictEqual ( stdout . toString ( ) , 'raboof\n' , 'expected value' ) ;
160
+ t . strictEqual ( stdout . toString ( ) , 'raboof\ngnidnats nam tsal\ n' , 'expected value' ) ;
161
161
t . strictEqual ( stderr . toString ( ) , '' , 'does not print to `stderr`' ) ;
162
162
}
163
163
t . end ( ) ;
0 commit comments