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

Work towards using QUnit 2 APIs. #16061

Merged
merged 5 commits into from
Jan 5, 2018
Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jan 5, 2018

Migrates ember-runtime and ember-metal to using QUnit 2 APIs (avoiding global assertions, using beforeEach/afterEach instead of setup/teardown, etc).

It also updates the test harness for moduleFor and the older ember-dev system to honor both setup/teardown and beforeEach/afterEach.

@rwjblue
Copy link
Member Author

rwjblue commented Jan 5, 2018

@thoov - This is somewhat related to the general purpose "test cleanup" quest issue, would you mind reviewing?

@@ -108,5 +108,5 @@ function assertDirty(obj, callback, label) {
let tag = tagFor(obj);
let tagValue = tag.value();
callback();
ok(!tag.validate(tagValue), label);
QUnit.config.current.assert.ok(!tag.validate(tagValue), label);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats your take on this vs passing assert into assertDirty?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just my own laziness I think

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is just one occurrence of assertDirty so I say we hook it up and then merge this

@thoov
Copy link
Member

thoov commented Jan 5, 2018

Other than the one comment I had it LGTM.

Tagging #15988 so it shows up on the quest issue

This is 🍌s and I don't like it one bit, but I also don't want to wait
3 times as long for the test suite to finish.
@rwjblue rwjblue merged commit 6976ef7 into emberjs:master Jan 5, 2018
@rwjblue rwjblue deleted the qunit-2-prep branch January 5, 2018 15:20
@thoov thoov mentioned this pull request Jan 5, 2018
14 tasks
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