@@ -6,7 +6,6 @@ describe('RatInAMaze', () => {
6
6
7
7
for ( const value of values ) {
8
8
// we deliberately want to check whether this constructor call fails or not
9
- // eslint-disable-next-line no-new
10
9
expect ( ( ) => {
11
10
new RatInAMaze ( value )
12
11
} ) . toThrow ( )
@@ -15,7 +14,6 @@ describe('RatInAMaze', () => {
15
14
16
15
it ( 'should fail for an empty array' , ( ) => {
17
16
// we deliberately want to check whether this constructor call fails or not
18
- // eslint-disable-next-line no-new
19
17
expect ( ( ) => {
20
18
new RatInAMaze ( [ ] )
21
19
} ) . toThrow ( )
@@ -28,7 +26,6 @@ describe('RatInAMaze', () => {
28
26
]
29
27
30
28
// we deliberately want to check whether this constructor call fails or not
31
- // eslint-disable-next-line no-new
32
29
expect ( ( ) => {
33
30
new RatInAMaze ( array )
34
31
} ) . toThrow ( )
@@ -39,7 +36,6 @@ describe('RatInAMaze', () => {
39
36
40
37
for ( const value of values ) {
41
38
// we deliberately want to check whether this constructor call fails or not
42
- // eslint-disable-next-line no-new
43
39
expect ( ( ) => {
44
40
new RatInAMaze ( value )
45
41
} ) . toThrow ( )
0 commit comments