mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 09:32:04 +00:00
11 lines
455 B
TypeScript
11 lines
455 B
TypeScript
import { TestContext } from 'ember-test-helpers';
|
|
|
|
/**
|
|
* Start up the router for test context, allows reifying link component with application
|
|
* routes in integration test environment
|
|
* @link https://github.com/emberjs/ember.js/issues/16904
|
|
* @param {TestContext} testContext the testContext to lookup the router instance
|
|
* @returns {void}
|
|
*/
|
|
export default (testContext: TestContext): void => testContext.owner.lookup('router:main').setupRouter();
|