2016-04-28 17:50:03 -07:00
|
|
|
import {beforeEachProviders, describe} from '@angular/core/testing/testing_internal';
|
2016-02-10 16:54:32 -08:00
|
|
|
|
2015-11-23 18:07:37 -08:00
|
|
|
import {registerSpecs} from './impl/async_route_spec_impl';
|
2016-06-08 16:38:52 -07:00
|
|
|
import {TEST_ROUTER_PROVIDERS, ddescribeRouter, describeRouter, describeWith, describeWithAndWithout, describeWithout, itShouldRoute} from './util';
|
2015-11-23 18:07:37 -08:00
|
|
|
|
|
|
|
|
export function main() {
|
2016-02-10 16:54:32 -08:00
|
|
|
describe('async route spec', () => {
|
2015-11-23 18:07:37 -08:00
|
|
|
|
2016-02-10 16:54:32 -08:00
|
|
|
beforeEachProviders(() => TEST_ROUTER_PROVIDERS);
|
|
|
|
|
|
|
|
|
|
registerSpecs();
|
|
|
|
|
|
|
|
|
|
describeRouter('async routes', () => {
|
|
|
|
|
describeWithout('children', () => {
|
|
|
|
|
describeWith('route data', itShouldRoute);
|
|
|
|
|
describeWithAndWithout('params', itShouldRoute);
|
|
|
|
|
});
|
2015-11-23 18:07:37 -08:00
|
|
|
|
2016-06-08 16:38:52 -07:00
|
|
|
describeWith(
|
|
|
|
|
'sync children', () => { describeWithAndWithout('default routes', itShouldRoute); });
|
2015-11-23 18:07:37 -08:00
|
|
|
|
2016-02-10 16:54:32 -08:00
|
|
|
describeWith('async children', () => {
|
2016-06-08 16:38:52 -07:00
|
|
|
describeWithAndWithout(
|
|
|
|
|
'params', () => { describeWithout('default routes', itShouldRoute); });
|
2016-02-10 16:54:32 -08:00
|
|
|
});
|
2015-11-23 18:07:37 -08:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|