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

when actual is undefined, AssertionError == Assertion Message. #220

Open
user24 opened this issue Sep 3, 2013 · 2 comments · May be fixed by #268
Open

when actual is undefined, AssertionError == Assertion Message. #220

user24 opened this issue Sep 3, 2013 · 2 comments · May be fixed by #268

Comments

@user24
Copy link

user24 commented Sep 3, 2013

example:

module.exports.myTest = function (test) {
    test.expect(1);

    test.equal(undefined, 2, "some message")

    test.done();
}

/*

$ nodeunit test.js 

test.js
✖ myTest

Assertion Message: some message
AssertionError: some message // should say undefined == 2

*/
@user24
Copy link
Author

user24 commented Sep 3, 2013

also happens when actual == 0

@dnwe
Copy link

dnwe commented Jul 8, 2014

@caolan any workaround for this issue, apart from including the value of actual in the message?

@macmenot macmenot linked a pull request Jul 8, 2014 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants