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: #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 27, 2017
1 parent ddcd1a2 commit 31d3a22
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 31d3a22

Please sign in to comment.