Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Object #<Test> has no method 'callback' on failing tests #140

Open
bpasero opened this issue Oct 19, 2011 · 3 comments
Open

TypeError: Object #<Test> has no method 'callback' on failing tests #140

bpasero opened this issue Oct 19, 2011 · 3 comments

Comments

@bpasero
Copy link

bpasero commented Oct 19, 2011

I am using expresso 0.9.2 and whenever a test is failing I am seeing the following error on each test case that is failing:

uncaught undefined: TypeError: Object # has no method 'callback'
at IncomingMessage. (/usr/local/lib/node_modules/expresso/bin/expresso:525:26)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Socket.ondata (http.js:1231:22)
at Socket._onReadable (net.js:677:27)
at IOWatcher.onReadable as callback

TypeError: Object # has no method 'callback'
at IncomingMessage. (/usr/local/lib/node_modules/expresso/bin/expresso:525:26)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Socket.ondata (http.js:1231:22)
at Socket._onReadable (net.js:677:27)
at IOWatcher.onReadable as callback

This makes it harder to actually see the stacktrace from the failing test. I can workaround this issue by adding a method "callback" from within my test, but I am not sure whats the purpose of this callback is.

@bfuster
Copy link

bfuster commented Nov 1, 2011

Me too :(

@dperezrada
Copy link

Same problem here. As bpasero said, set callback to avoid the problem:
exports.testHelloWorld = function(beforeExit, assert) {
this.callback = function(){};
...
}

@isidorn
Copy link

isidorn commented Nov 2, 2020

Love the progress here ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants