@@ -119,18 +119,18 @@ describe("getFilterFunction", () => {
119
119
it ( "should throw an error for any other strings for non-typescript users" , ( ) => {
120
120
// @ts -expect-error
121
121
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'
123
123
) ;
124
124
125
125
// @ts -expect-error
126
126
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'
128
128
) ;
129
129
} ) ;
130
130
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" , ( ) => {
132
132
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'
134
134
// @ts -expect-error
135
135
process . env . NODE_ENV = "production" ;
136
136
@@ -139,7 +139,7 @@ describe("getFilterFunction", () => {
139
139
// @ts -expect-error
140
140
expect ( getFilterFunction ( "custom" ) ) . toBe ( noFilter ) ;
141
141
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'
143
143
// @ts -expect-error
144
144
process . env . NODE_ENV = env ;
145
145
} ) ;
0 commit comments