You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test/main.test.js
1) should equal 0 when n === 0
2) should equal 1 when n === 1
3) should equal 55 when n === 10
√ should throw when n > 10
√ should throw when n < 0
√ should throw when is not Number
3 passing (35ms)
3 failing
test/main.test.js should equal 0 when n === 0:
AssertionError: expected 0 == undefined
at Context. (test\main.test.js:7:34)
test/main.test.js should equal 1 when n === 1:
AssertionError: expected 1 == undefined
at Context. (test\main.test.js:11:34)
test/main.test.js should equal 55 when n === 10:
AssertionError: expected 55 == undefined
at Context. (test\main.test.js:15:35)
The text was updated successfully, but these errors were encountered:
具体报错如下图
F:\github\myStudy\node\lesson6>mocha
test/main.test.js
1) should equal 0 when n === 0
2) should equal 1 when n === 1
3) should equal 55 when n === 10
√ should throw when n > 10
√ should throw when n < 0
√ should throw when is not Number
3 passing (35ms)
3 failing
test/main.test.js should equal 0 when n === 0:
AssertionError: expected 0 == undefined
at Context. (test\main.test.js:7:34)
test/main.test.js should equal 1 when n === 1:
AssertionError: expected 1 == undefined
at Context. (test\main.test.js:11:34)
test/main.test.js should equal 55 when n === 10:
AssertionError: expected 55 == undefined
at Context. (test\main.test.js:15:35)
The text was updated successfully, but these errors were encountered: