2016-04-12 09:40:37 -07:00
|
|
|
import {
|
|
|
|
|
describeRouter,
|
|
|
|
|
ddescribeRouter,
|
|
|
|
|
describeWith,
|
|
|
|
|
describeWithout,
|
|
|
|
|
describeWithAndWithout,
|
|
|
|
|
itShouldRoute,
|
|
|
|
|
TEST_ROUTER_PROVIDERS
|
|
|
|
|
} from './util';
|
2015-11-23 18:07:37 -08:00
|
|
|
|
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';
|
|
|
|
|
|
|
|
|
|
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);
|
2015-11-23 18:07:37 -08:00
|
|
|
|
2016-02-10 16:54:32 -08:00
|
|
|
registerSpecs();
|
2015-11-23 18:07:37 -08:00
|
|
|
|
2016-02-10 16:54:32 -08:00
|
|
|
describeRouter('async routes', () => {
|
|
|
|
|
describeWithout('children', () => {
|
|
|
|
|
describeWith('route data', itShouldRoute);
|
|
|
|
|
describeWithAndWithout('params', itShouldRoute);
|
|
|
|
|
});
|
|
|
|
|
|
2016-04-12 09:40:37 -07:00
|
|
|
describeWith('sync children',
|
|
|
|
|
() => { describeWithAndWithout('default routes', itShouldRoute); });
|
2016-02-10 16:54:32 -08:00
|
|
|
|
|
|
|
|
describeWith('async children', () => {
|
2016-04-12 09:40:37 -07:00
|
|
|
describeWithAndWithout('params',
|
|
|
|
|
() => { describeWithout('default routes', itShouldRoute); });
|
2016-02-10 16:54:32 -08:00
|
|
|
});
|
2015-11-23 18:07:37 -08:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|