mirror of https://github.com/nodejs/node.git
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>pull/13987/merge
parent
9330835754
commit
a1ecdcfb15
|
@ -8,8 +8,8 @@ const assert = require('assert');
|
|||
const { spawnSync } = require('child_process');
|
||||
|
||||
const expected =
|
||||
'could not initialize ICU ' +
|
||||
'(check NODE_ICU_DATA or --icu-data-dir parameters)\n';
|
||||
'could not initialize ICU (check NODE_ICU_DATA or ' +
|
||||
'--icu-data-dir parameters)' + (common.isWindows ? '\r\n' : '\n');
|
||||
|
||||
{
|
||||
const child = spawnSync(process.execPath, ['--icu-data-dir=/', '-e', '0']);
|
||||
|
|
Loading…
Reference in New Issue