From f8207fffcc62ce42f4930251f56ac7d50e1a2156 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Jan 2021 16:07:52 +0000 Subject: Make typeface case insensitive --- js/test/tests.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/test') diff --git a/js/test/tests.ts b/js/test/tests.ts index 68a4bdf..769ee8b 100644 --- a/js/test/tests.ts +++ b/js/test/tests.ts @@ -49,3 +49,9 @@ export function whenUnicodeCodePointIsInAstralPlaneThenReturnedValueIncludesStri assert.strictEqual(result.string, "🕿"); } + +export function typefaceIsCaseInsensitive() { + const result = dingbatToUnicode.codePoint("wingDingS", 41)!!; + + assert.strictEqual(result.codePoint, 0x2706); +} -- cgit v1.2.3