@@ -214,40 +214,40 @@ describe('Path Filter', () => {
214214
215215 describe ( 'Throw error' , ( ) => {
216216 it ( 'should throw error with null' , ( ) => {
217- expect ( testPathFilter ( null ) ) . toThrowError ( Error ) ;
217+ expect ( testPathFilter ( null ) ) . toThrow ( Error ) ;
218218 } ) ;
219219
220220 it ( 'should throw error with object literal' , ( ) => {
221- expect ( testPathFilter ( fakeReq ) ) . toThrowError ( Error ) ;
221+ expect ( testPathFilter ( fakeReq ) ) . toThrow ( Error ) ;
222222 } ) ;
223223
224224 it ( 'should throw error with integers' , ( ) => {
225- expect ( testPathFilter ( 123 ) ) . toThrowError ( Error ) ;
225+ expect ( testPathFilter ( 123 ) ) . toThrow ( Error ) ;
226226 } ) ;
227227
228228 it ( 'should throw error with mixed string and glob pattern' , ( ) => {
229- expect ( testPathFilter ( [ '/api' , '!*.html' ] ) ) . toThrowError ( Error ) ;
229+ expect ( testPathFilter ( [ '/api' , '!*.html' ] ) ) . toThrow ( Error ) ;
230230 } ) ;
231231 } ) ;
232232
233233 describe ( 'Do not throw error' , ( ) => {
234234 it ( 'should not throw error with string' , ( ) => {
235- expect ( testPathFilter ( '/123' ) ) . not . toThrowError ( Error ) ;
235+ expect ( testPathFilter ( '/123' ) ) . not . toThrow ( Error ) ;
236236 } ) ;
237237
238238 it ( 'should not throw error with Array' , ( ) => {
239- expect ( testPathFilter ( [ '/123' ] ) ) . not . toThrowError ( Error ) ;
239+ expect ( testPathFilter ( [ '/123' ] ) ) . not . toThrow ( Error ) ;
240240 } ) ;
241241 it ( 'should not throw error with glob' , ( ) => {
242- expect ( testPathFilter ( '/**' ) ) . not . toThrowError ( Error ) ;
242+ expect ( testPathFilter ( '/**' ) ) . not . toThrow ( Error ) ;
243243 } ) ;
244244
245245 it ( 'should not throw error with Array of globs' , ( ) => {
246- expect ( testPathFilter ( [ '/**' , '!*.html' ] ) ) . not . toThrowError ( Error ) ;
246+ expect ( testPathFilter ( [ '/**' , '!*.html' ] ) ) . not . toThrow ( Error ) ;
247247 } ) ;
248248
249249 it ( 'should not throw error with Function' , ( ) => {
250- expect ( testPathFilter ( ( ) => { } ) ) . not . toThrowError ( Error ) ;
250+ expect ( testPathFilter ( ( ) => { } ) ) . not . toThrow ( Error ) ;
251251 } ) ;
252252 } ) ;
253253 } ) ;
0 commit comments