From e8ca33025a66c6e220115267645743466d721a85 Mon Sep 17 00:00:00 2001 From: Jared Haines Date: Fri, 12 Oct 2018 11:23:14 -0700 Subject: [PATCH] test: increased code coverage for slowCases Added test coverage for 4 un-covered if statements in slowCases PR-URL: https://github.com/nodejs/node/pull/23592 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat --- test/parallel/test-internal-util-normalizeencoding.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/parallel/test-internal-util-normalizeencoding.js b/test/parallel/test-internal-util-normalizeencoding.js index 1fe97156ee1758..d7a0259ac9c9fd 100644 --- a/test/parallel/test-internal-util-normalizeencoding.js +++ b/test/parallel/test-internal-util-normalizeencoding.js @@ -18,6 +18,7 @@ const tests = [ ['utF-8', 'utf8'], ['ucs2', 'utf16le'], ['UCS2', 'utf16le'], + ['UcS2', 'utf16le'], ['ucs-2', 'utf16le'], ['UCS-2', 'utf16le'], ['UcS-2', 'utf16le'], @@ -31,8 +32,11 @@ const tests = [ ['LaTiN1', 'latin1'], ['base64', 'base64'], ['BASE64', 'base64'], + ['Base64', 'base64'], ['hex', 'hex'], ['HEX', 'hex'], + ['ASCII', 'ascii'], + ['AsCii', 'ascii'], ['foo', undefined], [1, undefined], [false, undefined],