Skip to content

Commit

Permalink
test: fix a test case for Windows (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfischer committed Jan 8, 2022
1 parent 1fe8ef5 commit 951f5ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ describe('proxy', () => {
it('runs very long subcommand chains', (done) => {
const fun = (unix() ? shell.$output : shell['%output%']);
const ret = fun.one.two.three.four.five.six('seven');
// Note: newline should be '\n', because we're checking a JS string, not
// something from the file system.
ret.stdout.should.equal('one two three four five six seven\n');
const newline = (unix() ? '\n' : '\r\n');
ret.stdout.should.equal(`one two three four five six seven${newline}`);
ret.stderr.should.equal('');
ret.code.should.equal(0);
done();
Expand Down

0 comments on commit 951f5ae

Please sign in to comment.