Browse Source

test: fix failure in test-icu-data-dir.js

This fixes a broken test on Windows caused by EOL conversion.

PR-URL: https://github.com/nodejs/node/pull/13987
Refs: https://github.com/nodejs/node/pull/13940
Refs: https://github.com/nodejs/node/issues/13986
Reviewed-By: Refael Ackermann <refack@gmail.com>
v6
Tobias Nießen 8 years ago
parent
commit
a1ecdcfb15
  1. 4
      test/parallel/test-icu-data-dir.js

4
test/parallel/test-icu-data-dir.js

@ -8,8 +8,8 @@ const assert = require('assert');
const { spawnSync } = require('child_process'); const { spawnSync } = require('child_process');
const expected = const expected =
'could not initialize ICU ' + 'could not initialize ICU (check NODE_ICU_DATA or ' +
'(check NODE_ICU_DATA or --icu-data-dir parameters)\n'; '--icu-data-dir parameters)' + (common.isWindows ? '\r\n' : '\n');
{ {
const child = spawnSync(process.execPath, ['--icu-data-dir=/', '-e', '0']); const child = spawnSync(process.execPath, ['--icu-data-dir=/', '-e', '0']);

Loading…
Cancel
Save