Tell us what’s happening:
FCC testing of my unit tests won’t pass.
It seems assertion-analyser.js doesn’t pick up the assertion (assert.throw()
) in my test Invalid string when I log them to the console (see below):
What did I forgot? Is the assertion-analyser.js not intended for error testing?
Please make my day!
Your code so far
test('Invalid string', function(done) {
let invalidString = '1.5..2.84..63.12.7.2..5.....9..1....8.2.3674.3.7.2..9.47...8..1..16....923914.67.';
assert.throws(() => solver.solve(invalidString), /Puzzle cannot be solved/);
done();
});
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0
.
Challenge: Sudoku Solver
Link to the challenge: