From def98c6959aab6a772690d2be9e8ab3903e5524f Mon Sep 17 00:00:00 2001 From: Nathan Jiang Date: Tue, 18 Jul 2017 17:06:40 +0800 Subject: [PATCH] test: replace string concatenation with template PR-URL: https://github.com/nodejs/node/pull/14342 Reviewed-By: Joyee Cheung Reviewed-By: Rich Trott Reviewed-By: Refael Ackermann --- test/parallel/test-icu-data-dir.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-icu-data-dir.js b/test/parallel/test-icu-data-dir.js index eb9b07e3a49275..1a97699ca51691 100644 --- a/test/parallel/test-icu-data-dir.js +++ b/test/parallel/test-icu-data-dir.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); +const os = require('os'); if (!(common.hasIntl && common.hasSmallICU)) common.skip('missing Intl'); @@ -8,7 +9,7 @@ const { spawnSync } = require('child_process'); const expected = 'could not initialize ICU (check NODE_ICU_DATA or ' + - '--icu-data-dir parameters)' + (common.isWindows ? '\r\n' : '\n'); + `--icu-data-dir parameters)${os.EOL}`; { const child = spawnSync(process.execPath, ['--icu-data-dir=/', '-e', '0']);