diff --git a/test/parallel/test-icu-punycode.js b/test/parallel/test-icu-punycode.js index 2501b1d86e7b88..35dab6232f34bc 100644 --- a/test/parallel/test-icu-punycode.js +++ b/test/parallel/test-icu-punycode.js @@ -9,6 +9,12 @@ const { internalBinding } = require('internal/test/binding'); const icu = internalBinding('icu'); const assert = require('assert'); +// test hasConverter method +assert(icu.hasConverter('utf-8'), + 'hasConverter should report coverter exists for utf-8'); +assert(!icu.hasConverter('x'), + 'hasConverter should report coverter does not exist for x'); + const tests = require('../fixtures/url-idna.js'); const fixtures = require('../common/fixtures'); const wptToASCIITests = require(