Automattic / Automattic/expect.js

Message not clear enough

Open
#157 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
207
PR merge metrics
No merged PRs in 30d

Description

When the assertion fails you get something like

```
Error: expected 6 to equal 7
```

Could this be improved a bit to explicitly say which one was the expected and which one was the actual value. Something like:

```
Error: Expected: [7] Actual: [6]
```

Sorry maybe for native english speaker the existing message is obvious but for the rest of us it is NOT. I always have to look at the test case to see which one is which. Something small but I believe it would make life easier for a whole bunch of users.
Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.