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, ddescribe} 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/sync_route_spec_impl';
|
|
|
|
|
|
|
|
|
|
export function main() {
|
2016-02-10 16:54:32 -08:00
|
|
|
describe('sync 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('sync routes', () => {
|
|
|
|
|
describeWithout('children', () => { describeWithAndWithout('params', itShouldRoute); });
|
|
|
|
|
|
|
|
|
|
describeWith('sync children', () => {
|
2016-04-12 09:40:37 -07:00
|
|
|
describeWithout('default routes',
|
|
|
|
|
() => { describeWithAndWithout('params', itShouldRoute); });
|
2016-02-10 16:54:32 -08:00
|
|
|
describeWith('default routes', () => { describeWithout('params', itShouldRoute); });
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describeWith('dynamic components', itShouldRoute);
|
2015-11-23 18:07:37 -08:00
|
|
|
});
|
2016-02-26 10:37:43 -08:00
|
|
|
|
2015-11-23 18:07:37 -08:00
|
|
|
});
|
|
|
|
|
}
|