11import React from "react" ;
2- import { act , render } from "@testing-library/react" ;
2+ import { act , render } from "@testing-library/react" ;
33
44import { useTextValidation } from "../useTextValidation" ;
55
@@ -63,11 +63,6 @@ describe("useTextValidation", () => {
6363 expect ( callback ) . toHaveBeenCalledWith ( new Set ( ) ) ;
6464 } ) ;
6565
66- it ( "does not flag tag-based flag emoji ๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ" , ( ) => {
67- const callback = runWithValue ( "๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ" ) ;
68- expect ( callback ) . toHaveBeenCalledWith ( new Set ( ) ) ;
69- } ) ;
70-
7166 it ( "does not flag keycap emoji #๏ธโฃ" , ( ) => {
7267 const callback = runWithValue ( "#๏ธโฃ" ) ;
7368 expect ( callback ) . toHaveBeenCalledWith ( new Set ( ) ) ;
@@ -76,12 +71,12 @@ describe("useTextValidation", () => {
7671
7772 describe ( "mixed content" , ( ) => {
7873 it ( "detects ZWS while ignoring surrounding emoji" , ( ) => {
79- const callback = runWithValue ( "Check\u200B โ๏ธ ๐จโ๐ฉโ๐งโ๐ฆ ๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ #๏ธโฃ" ) ;
74+ const callback = runWithValue ( "Check\u200B โ๏ธ๐จโ๐ฉโ๐งโ#๏ธโฃ" ) ;
8075 expect ( callback ) . toHaveBeenCalledWith ( new Set ( [ 0x200b ] ) ) ;
8176 } ) ;
8277
8378 it ( "reports empty set for text with only emoji" , ( ) => {
84- const callback = runWithValue ( "โ๏ธ ๐จโ๐ฉโ๐งโ๐ฆ ๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ #๏ธโฃ" ) ;
79+ const callback = runWithValue ( "โ๏ธ ๐จโ๐ฉโ๐งโ๐ฆ#๏ธโฃ" ) ;
8580 expect ( callback ) . toHaveBeenCalledWith ( new Set ( ) ) ;
8681 } ) ;
8782 } ) ;
0 commit comments