style: remove redundant eslint suppressions (#1667)

This commit is contained in:
Piotr Idzik
2024-06-11 22:10:48 +02:00
committed by GitHub
parent 1554ba5f9c
commit 79b93d35b6
6 changed files with 1 additions and 11 deletions

View File

@ -6,7 +6,6 @@ describe('RatInAMaze', () => {
for (const value of values) {
// we deliberately want to check whether this constructor call fails or not
// eslint-disable-next-line no-new
expect(() => {
new RatInAMaze(value)
}).toThrow()
@ -15,7 +14,6 @@ describe('RatInAMaze', () => {
it('should fail for an empty array', () => {
// we deliberately want to check whether this constructor call fails or not
// eslint-disable-next-line no-new
expect(() => {
new RatInAMaze([])
}).toThrow()
@ -28,7 +26,6 @@ describe('RatInAMaze', () => {
]
// we deliberately want to check whether this constructor call fails or not
// eslint-disable-next-line no-new
expect(() => {
new RatInAMaze(array)
}).toThrow()
@ -39,7 +36,6 @@ describe('RatInAMaze', () => {
for (const value of values) {
// we deliberately want to check whether this constructor call fails or not
// eslint-disable-next-line no-new
expect(() => {
new RatInAMaze(value)
}).toThrow()

View File

@ -27,7 +27,6 @@ const solved = [
describe('Sudoku', () => {
it('should create a valid board successfully', () => {
// we deliberately want to check whether this constructor call fails or not
// eslint-disable-next-line no-new
expect(() => {
new Sudoku(data)
}).not.toThrow()