Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for onError not capturing downstream errors #149

Merged
merged 2 commits into from
Apr 26, 2019
Merged

Add test for onError not capturing downstream errors #149

merged 2 commits into from
Apr 26, 2019

Conversation

katanacrimson
Copy link
Contributor

A bit hacky, unfortunately, because I'm wary of trying to modify state from an "onevent"-esque function. Should cover that #59's fix is not broken by future changes.

@katanacrimson katanacrimson mentioned this pull request Apr 26, 2019
11 tasks
@katanacrimson katanacrimson mentioned this pull request Apr 26, 2019
@MarkHerhold
Copy link
Contributor

MarkHerhold commented Apr 26, 2019

I tested this by reversing the .catch()/.then() clauses and the test breaks. Great job 👍

@MarkHerhold MarkHerhold merged commit 0f6406b into koajs:v5 Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants