Closed
Description
Please see this comment: #1558 (comment)
Original issue follows.
Description
When using t.snapshot(foo)
and foo
does not match the snapshot, the diff that is shown uses -
to indicate the new foo
values and +
to show the old foo
values.
This is unintuitive.
I believe the problem may be at
Line 321 in 14f7095
Test Source
import test from 'ava'
test('snapshot diff', t => {
t.snapshot(`\n${Date.now()}\n`, 'the - value should be less than the + value')
})
Environment
Latest stable ava on OS X
IssueHunt Summary
Backers (Total: $60.00)
issuehunt ($60.00)
Submitted pull Requests
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
IssueHunt has been backed by the following sponsors. Become a sponsor