Skip to content

Commit

Permalink
Fix stderr result assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed Aug 20, 2019
1 parent 9764508 commit d7c95fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/scripts/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('spawn', () => {
// utf8 support in windows shell (cmd.exe) is difficult.
Buffer.byteLength(stderrResult, 'hex').should.least(1);
} else {
stderrResult.toString('utf8').should.eql('cat: nothing: No such file or directory');
stderrResult.toString('utf8').should.with.match(/^cat: nothing: No such file or directory\n?$/);
}
});
});
Expand Down

0 comments on commit d7c95fe

Please sign in to comment.