Skip to content

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

Description

@user24

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

*/

Activity

  1. user24 commented on Sep 3, 2013

    @user24
    Author

    also happens when actual == 0

  2. dnwe commented on Jul 8, 2014

    @dnwe

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions