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>
This commit is contained in:
Daijiro Wachi 2017-01-09 16:40:04 +01:00 committed by James M Snell
parent 828f0c838e
commit a0e13dae1f

View File

@ -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