Browse Source

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>
v7.x
Daijiro Wachi 8 years ago
committed by Italo A. Casas
parent
commit
31d3a22989
  1. 7
      test/parallel/test-icu-transcode.js

7
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

Loading…
Cancel
Save