From dc31176595979206a3d2a38836a74479cdffa828 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 29 Oct 2022 15:31:03 +0100 Subject: [PATCH] fixup! test: fix textdecoder test for small-icu builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tobias Nießen --- test/parallel/test-whatwg-encoding-custom-textdecoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-whatwg-encoding-custom-textdecoder.js b/test/parallel/test-whatwg-encoding-custom-textdecoder.js index 0e0619a9348f9a..74c6a002223255 100644 --- a/test/parallel/test-whatwg-encoding-custom-textdecoder.js +++ b/test/parallel/test-whatwg-encoding-custom-textdecoder.js @@ -208,6 +208,6 @@ if (common.hasIntl) { assert.strictEqual(str, '\ufffd'); } catch (e) { // Encoding may not be available, e.g. small-icu builds - assert(e.code, 'ERR_ENCODING_NOT_SUPPORTED'); + assert.strictEqual(e.code, 'ERR_ENCODING_NOT_SUPPORTED'); } }