@@ -6,7 +6,6 @@ describe('RatInAMaze', () => {
66
77 for ( const value of values ) {
88 // we deliberately want to check whether this constructor call fails or not
9- // eslint-disable-next-line no-new
109 expect ( ( ) => {
1110 new RatInAMaze ( value )
1211 } ) . toThrow ( )
@@ -15,7 +14,6 @@ describe('RatInAMaze', () => {
1514
1615 it ( 'should fail for an empty array' , ( ) => {
1716 // we deliberately want to check whether this constructor call fails or not
18- // eslint-disable-next-line no-new
1917 expect ( ( ) => {
2018 new RatInAMaze ( [ ] )
2119 } ) . toThrow ( )
@@ -28,7 +26,6 @@ describe('RatInAMaze', () => {
2826 ]
2927
3028 // we deliberately want to check whether this constructor call fails or not
31- // eslint-disable-next-line no-new
3229 expect ( ( ) => {
3330 new RatInAMaze ( array )
3431 } ) . toThrow ( )
@@ -39,7 +36,6 @@ describe('RatInAMaze', () => {
3936
4037 for ( const value of values ) {
4138 // we deliberately want to check whether this constructor call fails or not
42- // eslint-disable-next-line no-new
4339 expect ( ( ) => {
4440 new RatInAMaze ( value )
4541 } ) . toThrow ( )
0 commit comments