mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-19 18:13:44 +08:00
style: remove redundant eslint suppressions (#1667)
This commit is contained in:
@ -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()
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user