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
describe('Function', function () {
function recurseForEver(callback) {
recurseForEver(callback);
}
it('should recurse without error', function (done) {
recurseForEver(done);
});
});
produces:
jfk@graz:~/workspace/1/site-manager$ mocha test/range.test.js
0) Function should recurse without error:
TypeError: Cannot call method 'indexOf' of undefined
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:133:23
at Array.forEach (native)
at Function.list (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:123:12)
at Dot.epilogue (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:224:10)
at Runner.<anonymous> (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/dot.js:54:10)
at Runner.emit (events.js:88:20)
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:390:10
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:355:7
at next (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:157:23)
at Array.0 (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:175:5)
at EventEmitter._tickCallback (node.js:192:40)
1) Function should recurse without error:
TypeError: Cannot call method 'indexOf' of undefined
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:133:23
at Array.forEach (native)
at Function.list (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:123:12)
at Dot.epilogue (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:224:10)
at Runner.<anonymous> (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/dot.js:54:10)
at Runner.emit (events.js:88:20)
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:390:10
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:355:7
at next (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:157:23)
at Array.0 (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:175:5)
at EventEmitter._tickCallback (node.js:192:40)
The text was updated successfully, but these errors were encountered:
produces:
The text was updated successfully, but these errors were encountered: