2016-06-08 16:38:52 -07:00
|
|
|
import {beforeEachProviders, ddescribe, 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/sync_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('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-06-08 16:38:52 -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
|
|
|
});
|
|
|
|
|
}
|