add test verifying that registering an unknown service raises an exception#14850
Conversation
| }) | ||
| }); | ||
|
|
||
| throws(() => { |
There was a problem hiding this comment.
Should use expectAssertion here (otherwise it will fail for prod builds).
There was a problem hiding this comment.
this seems to be an Error, not an assertion:
ember.js/packages/container/lib/registry.js
Line 712 in aeeddf7
Should this be an assertion?
There was a problem hiding this comment.
That validateInjections method is only called from here:
ember.js/packages/container/lib/container.js
Lines 505 to 513 in 9b3d581
Which is inside of a runInDebug...
There was a problem hiding this comment.
It's also called from here, which doesn't seem to be wrapped in a runInDebug:
ember.js/packages/container/lib/container.js
Line 408 in 9b3d581
This is likely why I get test failures when using expectAssertion
There was a problem hiding this comment.
I'm going to wrap the validateInjections in a runInDebug and change the Error to an assert
b921a70 to
1ae1255
Compare
…raises an exception
1ae1255 to
ccbc56b
Compare
|
@rwjblue I believe that this is ready to go (I think the failing CI is just sauce labs flakiness). I've wrapped a |
rwjblue
left a comment
There was a problem hiding this comment.
LGTM, I restarted the sauce labs job.
|
It's 🍏, thanks |
|
Hey, |
|
@spruce this should help you: RSSchermer/ember-multiselect-checkboxes#41 |
|
I submitted piceaTech/ember-rapid-forms#153 to fix at least one example scenario in ember-rapid-forms. |
This now passes, but didn't in Ember 2.10. I git bisected the test and it passes since #14360