Browse Source

test: Trim cat output for windows

v0.10.0-release
isaacs 12 years ago
parent
commit
9826159bf1
  1. 3
      test/simple/test-child-process-stdio-inherit.js

3
test/simple/test-child-process-stdio-inherit.js

@ -44,7 +44,8 @@ function grandparent() {
child.on('close', function(code, signal) {
assert.equal(code, 0);
assert.equal(signal, null);
assert.equal(output, input);
// cat on windows adds a \r\n at the end.
assert.equal(output.trim(), input.trim());
});
}

Loading…
Cancel
Save