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

Prevent errors for skipped tests when using RSVP.Promise as Promise polyfill. #381

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

step2yeung
Copy link
Contributor

@step2yeung step2yeung commented Nov 6, 2018

Check QUnit.config.current.assert in asyncStart()

Problem:
A recent change to QUnit: qunitjs/qunit#1307
Has caused QUnit skipped tests to go through the Ember.RSVP code.

Solution:
in asyncStart(), do not add QUnit.config.current.assert.async() to doneCallback when QUnit.config.current.assert is undefined.

tests/unit/adapter-test.js Outdated Show resolved Hide resolved
@scalvert
Copy link
Contributor

scalvert commented Nov 6, 2018

Looks good!

@rwjblue rwjblue merged commit abd2d7d into emberjs:master Nov 6, 2018
@rwjblue rwjblue added the bug label Nov 6, 2018
@rwjblue rwjblue changed the title Check QUnit.config.current.assert in asyncStart() Prevent errors for skipped tests when using RSVP.Promise as Promise polyfill. Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants