Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit951f5ae

Browse files
authored
test: fix a test case for Windows (#24)
1 parent1fe8ef5 commit951f5ae

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
constfun=(unix() ?shell.$output :shell['%output%']);
235235
constret=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+
constnewline=(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)

[8]ページ先頭

©2009-2025 Movatter.jp