From b0354171c0e5c4f28613147dda9e91876e225c92 Mon Sep 17 00:00:00 2001 From: Nathan Jiang Date: Tue, 18 Jul 2017 17:06:40 +0800 Subject: [PATCH] [JsConf Code & Learn]test: replace string concatenation with template literals --- 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']);