Skip to content

Instantly share code, notes, and snippets.

@kbiedrzycki
Created March 8, 2017 09:58
Show Gist options
  • Save kbiedrzycki/2df1f894197e7c8df7d9c9ccdfa7c8bd to your computer and use it in GitHub Desktop.
Save kbiedrzycki/2df1f894197e7c8df7d9c9ccdfa7c8bd to your computer and use it in GitHub Desktop.
Router injection in ember tests
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