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:
  • Loading branch information
watilde committed Jan 9, 2017
1 parent 8a12368 commit bf731b9
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 bf731b9

Please sign in to comment.