Skip to content

Commit 951f5ae

Browse files
authored
test: fix a test case for Windows (#24)
1 parent 1fe8ef5 commit 951f5ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,8 @@ describe('proxy', () => {
233233
it('runs very long subcommand chains', (done) => {
234234
const fun = (unix() ? shell.$output : shell['%output%']);
235235
const ret = fun.one.two.three.four.five.six('seven');
236-
// Note: newline should be '\n', because we're checking a JS string, not
237-
// something from the file system.
238-
ret.stdout.should.equal('one two three four five six seven\n');
236+
const newline = (unix() ? '\n' : '\r\n');
237+
ret.stdout.should.equal(`one two three four five six seven${newline}`);
239238
ret.stderr.should.equal('');
240239
ret.code.should.equal(0);
241240
done();

0 commit comments

Comments
 (0)