Skip to content

Commit a0e13da

Browse files
watildejasnell
authored andcommitted
test: skip test-icu-transcode if Intl is not present
use common.hasIntl to make sure Intl object is present or not. PR-URL: #10707 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Steven R Loomis <[email protected]>
1 parent 828f0c8 commit a0e13da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/parallel/test-icu-transcode.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
'use strict';
22

3-
require('../common');
3+
const common = require('../common');
44
const buffer = require('buffer');
55
const assert = require('assert');
66

7+
if (!common.hasIntl) {
8+
common.skip('icu punycode tests because ICU is not present.');
9+
return;
10+
}
11+
712
const orig = Buffer.from('tést €', 'utf8');
813

914
// Test Transcoding

0 commit comments

Comments
 (0)