summaryrefslogtreecommitdiff
path: root/test/parallel/test-icu-transcode.js
diff options
context:
space:
mode:
authorDaijiro Wachi <daijiro.wachi@gmail.com>2017-01-09 16:40:04 +0100
committerJames M Snell <jasnell@gmail.com>2017-01-16 09:45:35 -0800
commita0e13dae1fa64bc135784f444840a9a8fe53f001 (patch)
tree94dc1927d3c07302763703ecde3fdd9903e6d9fb /test/parallel/test-icu-transcode.js
parent828f0c838e81096b9debd6e7f55e54b556eb7ef8 (diff)
downloadandroid-node-v8-a0e13dae1fa64bc135784f444840a9a8fe53f001.tar.gz
android-node-v8-a0e13dae1fa64bc135784f444840a9a8fe53f001.tar.bz2
android-node-v8-a0e13dae1fa64bc135784f444840a9a8fe53f001.zip
test: skip test-icu-transcode if Intl is not present
use common.hasIntl to make sure Intl object is present or not. PR-URL: https://github.com/nodejs/node/pull/10707 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Diffstat (limited to 'test/parallel/test-icu-transcode.js')
-rw-r--r--test/parallel/test-icu-transcode.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/parallel/test-icu-transcode.js b/test/parallel/test-icu-transcode.js
index 783bc00699..43cc90e1c1 100644
--- a/test/parallel/test-icu-transcode.js
+++ b/test/parallel/test-icu-transcode.js
@@ -1,9 +1,14 @@
'use strict';
-require('../common');
+const common = require('../common');
const buffer = require('buffer');
const assert = require('assert');
+if (!common.hasIntl) {
+ common.skip('icu punycode tests because ICU is not present.');
+ return;
+}
+
const orig = Buffer.from('tést €', 'utf8');
// Test Transcoding