Skip to content

Commit 07807e0

Browse files
committed
Fix tests on Windows
1 parent f5f698c commit 07807e0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,7 @@ test('unified-args', function(t) {
460460
var expected = [
461461
'Watching... (press CTRL+C to exit)',
462462
'watch.txt: no issues found',
463-
'watch.txt: no issues found',
464-
''
463+
'watch.txt: no issues found'
465464
].join('\n')
466465
var doc = join(cwd, 'watch.txt')
467466
var delay = 3000
@@ -486,7 +485,7 @@ test('unified-args', function(t) {
486485
resolved = true
487486
rm(doc)
488487
st.deepEqual(
489-
[res.stdout, strip(res.stderr)],
488+
[res.stdout, strip(res.stderr).trim()],
490489
['', expected],
491490
'should work'
492491
)
@@ -509,14 +508,13 @@ test('unified-args', function(t) {
509508
'Watching... (press CTRL+C to exit)',
510509
'Note: Ignoring `--output` until exit.',
511510
'watch.txt: no issues found',
512-
'watch.txt: no issues found',
513-
''
511+
'watch.txt: no issues found'
514512
]
515513

516514
// Windows immediatly quits.
517515
// Other OSes support cleaning up things.
518516
if (process.platform !== 'win32') {
519-
lines.push('watch.txt: written')
517+
lines.push('', 'watch.txt: written')
520518
}
521519

522520
var expected = lines.join('\n')

0 commit comments

Comments
 (0)