Skip to content

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

Merged
jzaefferer merged 1 commit into
qunitjs:masterfrom
jzaefferer:remove-global-hooks
Oct 17, 2014
Merged

Core: Remove the newly introduced global hooks until we have consensus#681
jzaefferer merged 1 commit into
qunitjs:masterfrom
jzaefferer:remove-global-hooks

Conversation

@jzaefferer

Copy link
Copy Markdown
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
Comment thread src/test.js Outdated

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

LGTM

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

Copy link
Copy Markdown
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