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

Ensure Ember.onerror is reset after each test #437

Merged
merged 3 commits into from
Feb 6, 2019

Conversation

scalvert
Copy link
Contributor

@scalvert scalvert commented Feb 1, 2019

This PR is paired with the new @ember/test-helpers API (setupOnerror/resetOnerror) for providing an Ember.onerror implementation (emberjs/ember-test-helpers#548). This adds automatic wiring up of resetOnerror with QUnit via testDone, so we ensure that the Ember.onerror function is reset after each test.

@scalvert
Copy link
Contributor Author

scalvert commented Feb 2, 2019

@rwjblue there's one small change I had to make with how testDone was called. Other than that it looks like this is good to go.

@rwjblue
Copy link
Member

rwjblue commented Feb 2, 2019

Looks good, will merge and release once I’m back at a computer.

@scalvert
Copy link
Contributor Author

scalvert commented Feb 5, 2019

txl4fhpsnvj0a

@rwjblue
Copy link
Member

rwjblue commented Feb 6, 2019

LOLOL

@rwjblue rwjblue merged commit cf44810 into emberjs:master Feb 6, 2019
@rwjblue rwjblue changed the title Add resetOnerror from @ember/test-helpers Ensure Ember.onerror is reset after each test Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants