Created
March 8, 2017 09:58
-
-
Save kbiedrzycki/2df1f894197e7c8df7d9c9ccdfa7c8bd to your computer and use it in GitHub Desktop.
Router injection in ember tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const StubInstance = Ember.Object.extend({ | |
didCreateRootView () {}, | |
}); | |
this.registry.register('-application-instance:main', StubInstance); | |
const router = this.container.lookup('router:main'); | |
router.startRouting(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment