Skip to content

Commit

Permalink
test: skip test-icu-transcode if Intl is not present
Browse files Browse the repository at this point in the history
use common.hasIntl to make sure Intl object is present or not.

PR-URL: nodejs#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>
  • Loading branch information
watilde authored and italoacasas committed Jan 25, 2017
1 parent cdfa056 commit 4436e83
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/parallel/test-icu-transcode.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4436e83

Please sign in to comment.