String diffs don't invert properly
novemberborn opened this issue · comments
In AVA, when diffing snapshots the gutters are inverted. This doesn't invert the string diff colors though. Compare the output for these tests:
import test from 'ava'
test('snapshot diff', t => {
t.snapshot(`\n${Date.now()}\n`, 'the - value should be less than the + value')
})
test('direct diff', t => {
t.is(`\n${Date.now() - 42e5}\n`, `\n${Date.now()}\n`)
})
I realized this previously but hadn't yet filed the issue. Example via avajs/ava#1558.
IssueHunt Summary
ninevra has been rewarded.
Backers (Total: $40.00)
issuehunt ($40.00)
Submitted pull Requests
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 funded $40.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
@novemberborn has rewarded $36.00 to @ninevra. See it on IssueHunt
- 💰 Total deposit: $40.00
- 🎉 Repository reward(0%): $0.00
- 🔧 Service fee(10%): $4.00