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:
parent
828f0c838e
commit
a0e13dae1f
@ -1,9 +1,14 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('../common');
|
const common = require('../common');
|
||||||
const buffer = require('buffer');
|
const buffer = require('buffer');
|
||||||
const assert = require('assert');
|
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');
|
const orig = Buffer.from('tést €', 'utf8');
|
||||||
|
|
||||||
// Test Transcoding
|
// Test Transcoding
|
||||||
|
Loading…
x
Reference in New Issue
Block a user