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
Tobias Nießen 2017-06-29 15:27:23 +02:00
parent 9330835754
commit a1ecdcfb15
1 changed files with 2 additions and 2 deletions

View File

@ -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']);