Troubleshooting
An invalid amount of arguments were specified for a Suite
// 1 arguments
suite('name', function (suite) {
suite('an immediate suite', function (suite, test) {
test('an immediate test', function () {})
})
})// 2 arguments
suite('name', function (suite, test) {
test('an immediate test', function () {})
})// 3 arguments
suite('name', function (suite, test, done) {
setTimeout(function () {
test('a delayed test', function () {})
done()
}, 1000)
})An invalid amount of arguments were specified for a Test
// 0 arguments
test('an immediate test', function () {
// completes right away
})
// 1 arguments
test('an asynchronous test', function (done) {
setTimeout(function () {
done()
}, 1000)
})
Last updated
Was this helpful?