-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Reset module
variable after all tests in module are completed.
#260
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing, otherwise seems good to me.
lib/ember-qunit/qunit-module.js
Outdated
|
||
qunitModule(module.name, { | ||
before() { | ||
module = new Constructor(name, description, callbacks); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment that we don't want to assign this on this
to avoid allowing the test to access it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated with a comment now
4e0aa2d
to
0eebe6c
Compare
lib/ember-qunit/qunit-module.js
Outdated
var module; | ||
|
||
qunitModule(name, { | ||
before() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also need to support user-defined before
/after
hooks, otherwise we potentially break existing tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'OH! Good point, can't believe I forgot that 😢
Refactor looks good, very similar to what I did in the new API PR... |
Due to the issues with a similar change in the 0.4.x branch, I'm going to hold on merging this until I can verify it works against a couple apps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, tested the changes against ember-cli-addon-search, travis-web, and ember-observer. All passed just fine.
f868fb8
to
3caca45
Compare
Okay had some minor updates around tests and the name used by the module. @rwjblue would appreciate one more quick review before merging. |
No description provided.