Skip to content

Commit 2b3db6c

Browse files
committed
Apply standard code style
1 parent 44fee41 commit 2b3db6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Backtracking/tests/Sudoku.test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ const solved = [
2121
[8, 5, 1, 7, 9, 2, 6, 4, 3],
2222
[1, 3, 8, 9, 4, 7, 2, 5, 6],
2323
[6, 9, 2, 3, 5, 1, 8, 7, 4],
24-
[7, 4, 5, 2, 8, 6, 3, 1, 9],
24+
[7, 4, 5, 2, 8, 6, 3, 1, 9]
2525
]
2626

2727
describe('Sudoku', () => {
2828
it('should create a valid board successfully', () => {
29-
expect(() => {new Sudoku(data)}).not.toThrow()
29+
// we deliberately want to check whether this constructor call fails or not
30+
// eslint-disable-next-line no-new
31+
expect(() => { new Sudoku(data) }).not.toThrow()
3032
})
3133

3234
it('should find an empty cell', () => {

0 commit comments

Comments
 (0)