Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 21, 2023
1 parent 5e26f75 commit 83a8447
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,11 +690,14 @@ test('args', async function (t) {

const lines = [
'Watching... (press CTRL+C to exit)',
'watch.txt: no issues found',
'watch.txt: no issues found'
]

if (platform !== 'win32') {
lines.push('watch.txt: no issues found', '')
if (platform === 'win32') {
// Empty.
} else {
lines.push('')
}

assert.equal(result.exitCode, platform === 'win32' ? undefined : 0)
Expand Down Expand Up @@ -728,11 +731,14 @@ test('args', async function (t) {
const lines = [
'Watching... (press CTRL+C to exit)',
'Note: Ignoring `--output` until exit.',
'watch.txt: no issues found',
'watch.txt: no issues found'
]

if (platform !== 'win32') {
lines.push('watch.txt: no issues found', '', 'watch.txt: written')
if (platform === 'win32') {
lines.push('')
} else {
lines.push('', 'watch.txt: written')
}

assert.equal(result.exitCode, platform === 'win32' ? undefined : 0)
Expand Down

0 comments on commit 83a8447

Please sign in to comment.