-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[DEPRECATION] Deprecate globals resolver #18436
Changes from 4 commits
f8c9a26
74194e9
2798cd2
86d59a0
8709050
8b7d402
e7b2c13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,12 @@ moduleFor( | |
constructor() { | ||
super(); | ||
|
||
application = run(EmberApplication, 'create'); | ||
// Must use default resolver because test resolver does not normalize | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha, so lets split the tests that rely on the globals resolver into their own moduleFor + class (e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's only one test that relies on it, so I'm just going to move it into |
||
run(() => { | ||
expectDeprecation(() => { | ||
application = EmberApplication.create(); | ||
}); | ||
}); | ||
|
||
application.Person = EmberObject.extend({}); | ||
application.Orange = EmberObject.extend({}); | ||
|
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.
Hmm, why do we need to clear the assertions?
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.
In beforeEach we are creaing an application using the default resolver. This throws off the following assert.expect statements.