when `actual` is undefined, AssertionError == Assertion Message.
Open
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 359
- PR merge metrics
- No merged PRs in 30d
Description
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
*/
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the provided nodeunit test case, then trace the assertion-error formatting used by test.equal when actual is undefined. Done means the output includes the compared values, such as “undefined == 2”, while retaining the supplied assertion message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100