Skip to content

Commit

Permalink
Merge pull request #165 from puiutucutu/master
Browse files Browse the repository at this point in the history
add clearer example of using `Try`
  • Loading branch information
ericelliott authored Nov 5, 2019
2 parents bc2c2e9 + 441c26f commit 8a45d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ describe('sum()', async assert => {
assert({
given: 'NaN',
should: 'throw',
actual: Try(sum, 1, NaN),
expected: new TypeError('NaN')
});
actual: Try(sum, 1, NaN).toString(),
expected: 'TypeError: NaN'
});
});
```

Expand Down

0 comments on commit 8a45d95

Please sign in to comment.