Closed JamesMaroney closed 12 years ago
why are you calling an object callback
also the next release will use a Context so the only "reserved" key is "timeout"
it was a contrived example. I actually was injecting a spy into my item under test and then asserting on the spy in my spec
@callback seemed the most natural name for it. Everything became clear once I renamed it.
On Sat, Feb 11, 2012 at 4:01 PM, TJ Holowaychuk reply@reply.github.com wrote:
also the next release will use a Context so the only "reserved" key is "timeout"
Reply to this email directly or view it on GitHub: https://github.com/visionmedia/mocha/issues/259#issuecomment-3923470
When writing specs (BDD interface), writing to this.callback is apparently a no-no because it is overwritten by mocha for it's internal needs.
this.callback is no longer the object it once was in the beforeEach as one would have expected.