From 6ecdcefc56333d544a9f43b10405b43f08ff51ec Mon Sep 17 00:00:00 2001 From: Joseph Lozano Date: Thu, 16 Feb 2023 00:56:37 -0500 Subject: [PATCH] test emojis mixed with other chars --- deno/lib/__tests__/string.test.ts | 1 + src/__tests__/string.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/deno/lib/__tests__/string.test.ts b/deno/lib/__tests__/string.test.ts index 7908f855ed..06db88afe8 100644 --- a/deno/lib/__tests__/string.test.ts +++ b/deno/lib/__tests__/string.test.ts @@ -135,6 +135,7 @@ test("emoji validations", () => { emoji.parse("πŸΊπŸ‘©β€πŸš€πŸ«‘"); emoji.parse("πŸ’š πŸ’™ πŸ’œ πŸ’› ❀️"); expect(() => emoji.parse(":-)")).toThrow(); + expect(() => emoji.parse("πŸ˜€ is an emoji")).toThrow.() } catch (err) {} }); diff --git a/src/__tests__/string.test.ts b/src/__tests__/string.test.ts index 89e40feab3..64bfcbbc00 100644 --- a/src/__tests__/string.test.ts +++ b/src/__tests__/string.test.ts @@ -134,6 +134,7 @@ test("emoji validations", () => { emoji.parse("πŸΊπŸ‘©β€πŸš€πŸ«‘"); emoji.parse("πŸ’š πŸ’™ πŸ’œ πŸ’› ❀️"); expect(() => emoji.parse(":-)")).toThrow(); + expect(() => emoji.parse("πŸ˜€ is an emoji")) } catch (err) {} });