visionmedia/mocha — Issue #232: done() is not defined
Author: johnhamelink
Created: 2012-01-23 14:09:16+00:00
State: open

Hey there,

I have a unit test script which can be seen here: https://gist.github.com/3bc91203fb434a19e9e4
The problem is that tests return the following:

ReferenceError: done is not defined
at Request._callback (/Users/john/Sites/symble/Backend/test/routes.js:43:4)
at Request.callback (/Users/john/Sites/symble/Backend/test/node_modules/request/main.js:108:22)
at Request. (/Users/john/Sites/symble/Backend/test/node_modules/request/main.js:468:18)
at Request.emit (events.js:67:17)
at IncomingMessage. (/Users/john/Sites/symble/Backend/test/node_modules/request/main.js:429:16)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at Socket.ondata (http.js:1137:24)
at TCP.onread (net.js:354:27)

It seems to happen randomly - on different tests each time. It always happens twice.