@@ -3,13 +3,13 @@ import { renderHook } from "@/tests/lib/renderHook";
33import { useStringSelections } from "." ;
44
55describe ( "useStringSelections" , ( ) => {
6- it ( "should default to empty array" , async ( ) => {
6+ it ( "should default to empty array" , ( ) => {
77 const { result } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
88 expect ( result . current . allSelections ) . toEqual ( [ ] ) ;
99 } ) ;
1010
1111 describe ( "single page" , ( ) => {
12- it ( "should select multiple" , async ( ) => {
12+ it ( "should select multiple" , ( ) => {
1313 const { result, rerender } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
1414
1515 result . current . selectMutiple ( [ "foo" , "bar" ] ) ;
@@ -30,7 +30,7 @@ describe("useStringSelections", () => {
3030 ] ) ;
3131 } ) ;
3232
33- it ( "should set multiple" , async ( ) => {
33+ it ( "should set multiple" , ( ) => {
3434 const { result, rerender } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
3535
3636 result . current . setMultiple ( [ "foo" , "bar" ] ) ;
@@ -46,7 +46,7 @@ describe("useStringSelections", () => {
4646 expect ( result . current . allSelections ) . toEqual ( [ "baz" , "quz" , "foo" ] ) ;
4747 } ) ;
4848
49- it ( "should deSelectMutiple multiple" , async ( ) => {
49+ it ( "should deSelectMutiple multiple" , ( ) => {
5050 const { result, rerender } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
5151
5252 result . current . selectMutiple ( [ "foo" , "bar" , "baz" , "quz" ] ) ;
@@ -68,7 +68,7 @@ describe("useStringSelections", () => {
6868 expect ( result . current . allSelections ) . toEqual ( [ ] ) ;
6969 } ) ;
7070
71- it ( "should select toogle selections" , async ( ) => {
71+ it ( "should select toogle selections" , ( ) => {
7272 const { result, rerender } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
7373
7474 result . current . toggleSelection ( "foo" ) ;
@@ -86,7 +86,7 @@ describe("useStringSelections", () => {
8686 expect ( result . current . allSelections ) . toEqual ( [ "foo" ] ) ;
8787 } ) ;
8888
89- it ( "should return correct values for isSelected" , async ( ) => {
89+ it ( "should return correct values for isSelected" , ( ) => {
9090 const { result, rerender } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
9191
9292 result . current . selectMutiple ( [ "foo" , "bar" ] ) ;
@@ -99,7 +99,7 @@ describe("useStringSelections", () => {
9999 expect ( result . current . isSelected ( "baz" ) ) . toEqual ( false ) ;
100100 } ) ;
101101
102- it ( "should clear all" , async ( ) => {
102+ it ( "should clear all" , ( ) => {
103103 const { result, rerender } = renderHook ( ( ) => useStringSelections ( "" ) ) ;
104104
105105 result . current . selectMutiple ( [ "foo" , "bar" ] ) ;
0 commit comments