@@ -119,18 +119,18 @@ describe("getFilterFunction", () => {
119119 it ( "should throw an error for any other strings for non-typescript users" , ( ) => {
120120 // @ts -expect-error
121121 expect ( ( ) => getFilterFunction ( "" ) ) . toThrow (
122- 'Invalid filter function: "". Supported values are: "fuzzy", "case-insenitive ", "none", or a custom function'
122+ 'Invalid filter function: "". Supported values are: "fuzzy", "case-insensitive ", "none", or a custom function'
123123 ) ;
124124
125125 // @ts -expect-error
126126 expect ( ( ) => getFilterFunction ( "custom" ) ) . toThrow (
127- 'Invalid filter function: "custom". Supported values are: "fuzzy", "case-insenitive ", "none", or a custom function'
127+ 'Invalid filter function: "custom". Supported values are: "fuzzy", "case-insensitive ", "none", or a custom function'
128128 ) ;
129129 } ) ;
130130
131- it ( "should returnt he noFilter result for an invalid fulter function if the NODE_ENV is not production" , ( ) => {
131+ it ( "should return the noFilter result for an invalid filter function if the NODE_ENV is not production" , ( ) => {
132132 const env = process . env . NODE_ENV ;
133- // this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
133+ // this is caused by next defining process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
134134 // @ts -expect-error
135135 process . env . NODE_ENV = "production" ;
136136
@@ -139,7 +139,7 @@ describe("getFilterFunction", () => {
139139 // @ts -expect-error
140140 expect ( getFilterFunction ( "custom" ) ) . toBe ( noFilter ) ;
141141
142- // this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
142+ // this is caused by next defining process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
143143 // @ts -expect-error
144144 process . env . NODE_ENV = env ;
145145 } ) ;
0 commit comments