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

Test name is lost when asserting from inside a callback #150

Open
pselden opened this issue Oct 31, 2011 · 2 comments
Open

Test name is lost when asserting from inside a callback #150

pselden opened this issue Oct 31, 2011 · 2 comments

Comments

@pselden
Copy link

pselden commented Oct 31, 2011

Perhaps it's not possible to preserve this information, but it would be helpful to have:

exports['Timeout test'] = function(beforeExit, assert){
    setTimeout(function(){
        assert.ok(false);
    }, 100);
};
$ expresso ./test

   uncaught undefined: AssertionError: true == false
    at Object._onTimeout (/test/test.test.js:3:10)
    at Timer.callback (timers.js:83:39)
@kkaefer
Copy link
Contributor

kkaefer commented Oct 31, 2011

This should be solved in the 0.9.0 release.

@pselden
Copy link
Author

pselden commented Oct 31, 2011

I'm running the latest version (which npm claims to be 0.9.2???). Am I missing something 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

2 participants