Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 4 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /