Closed
Description
describe(function () {
before(function () {
this.credentials = {id: 123};
})
it('should work', function () {
expect(this.credentials.id).to.equal(123);
})
})
/usr/local/lib/node_modules/mocha/lib/interfaces/bdd.js:49
fn.call(suite);
^
TypeError: Cannot call method 'call' of undefined
at context.describe.context.context (/usr/local/lib/node_modules/mocha/lib/interfaces/bdd.js:49:10)
at Object.<anonymous> (/Users/dasilvacontin/temp/test/kek.js:1:63)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /usr/local/lib/node_modules/mocha/lib/mocha.js:187:27
at Array.forEach (native)
at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:184:14)
at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:405:31)
at Object.<anonymous> (/usr/local/lib/node_modules/mocha/bin/_mocha:405:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels