caolan / caolan/nodeunit

AssertionError doesn't output values

Open
#316 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

When an assertion fails, nodeunit doesn't output the two values being compared, it just says 'AssertionError'

Test:

```
381: test.equal('', undefined);
```

Output:

```
AssertionError
at Object.equal (/usr/local/lib/node_modules/nodeunit/lib/types.js:83:39)
at Object.exports.update_normal_orderWithPurchaseOrdersReturns (/.../my-tests.js:381:7)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in lib/types.js at the assertion code around line 83 and reproduce the shown test.equal('', undefined) case. Update the failure output so the compared values are shown, then verify that the example no longer reports only “AssertionError”.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.