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

Core: Remove the newly introduced global hooks until we have consensus #681

Merged
merged 1 commit into from
Oct 17, 2014

Conversation

jzaefferer
Copy link
Member

Between locating the hooks in QUnit or QUnit.config and making them simple setters and callback lists (like QUnit.done et al) and upcoming plans for nested suites, we decided not to release this feature, for now.

I'm keeping the abstractions for hooks in place, so it should be trivial to bring this back in whatever form we decide on later.

Effectively reverts 5ee31a0 and follow-up commits.

Fixes #665
Ref #633
Ref #635
Ref #647

@jzaefferer jzaefferer added this to the pre-2.0 milestone Oct 10, 2014
@@ -125,6 +125,7 @@ Test.prototype = {
};
},

// Currently only used for module-level hooks, can be used to add global level ones
Copy link
Member

Choose a reason for hiding this comment

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

only for consistency, we should keep or not the hyphen on "module-level" vs "global level".

IMHO, let's just change module-level to module level.

Between locating the hooks in `QUnit` or `QUnit.config` and making them
simple setters and callback lists (like QUnit.done et al) and upcoming
plans for nested suites, we decided not to release this feature, for now.

I'm keeping the abstractions for hooks in place, so it should be trivial
to bring this back in whatever form we decide on later.

Effectively reverts 5ee31a0 and follow-up
commits.

Fixes qunitjs#665
Ref qunitjs#633
Ref qunitjs#635
Ref qunitjs#647
@jzaefferer
Copy link
Member Author

Updated. I've now cut away the parts from the unit tests that were related to the new feature and kept the rest.

@leobalter
Copy link
Member

LGTM

@jzaefferer jzaefferer merged commit acfd98c into qunitjs:master Oct 17, 2014
@JamesMGreene
Copy link
Member

FYI @stefanpenner

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

Successfully merging this pull request may close these issues.

Make QUnit.config.beforeEach/afterEach functions rather than setters
3 participants