Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.

Simplify implementation #8

Merged
merged 2 commits into from
Mar 26, 2017
Merged

Simplify implementation #8

merged 2 commits into from
Mar 26, 2017

Conversation

novemberborn
Copy link
Member

@novemberborn novemberborn commented Mar 10, 2017

Implements the idea from #6 (comment).

See avajs/ava#1315 for the corresponding AVA PR.

@novemberborn novemberborn mentioned this pull request Mar 10, 2017
Rather than trying to catch the errors, wrap the argument such that the
test knows that an exception occurred before the assertion was invoked.
@novemberborn
Copy link
Member Author

Made the implementation a bit more complicated by guarding against t._throwsArgStart / t._throwsArgEnd not existing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants