Instead of running with karma and the karma-dart shim, run dart tests directly using the new package:test runner. This migrates away from package:unittest. Fixes a couple tests, mostly associated with depending on absolute URLs or editing the test providers after an injector had already been created. Remove karma-dart and associated files. Change gupfiles to run tests via `pub run test` instead.
38 lines
977 B
TypeScript
38 lines
977 B
TypeScript
import {
|
|
describeRouter,
|
|
ddescribeRouter,
|
|
describeWith,
|
|
describeWithout,
|
|
describeWithAndWithout,
|
|
itShouldRoute,
|
|
TEST_ROUTER_PROVIDERS
|
|
} from './util';
|
|
|
|
import {beforeEachProviders, describe} from 'angular2/testing_internal';
|
|
|
|
import {registerSpecs} from './impl/async_route_spec_impl';
|
|
|
|
export function main() {
|
|
describe('async route spec', () => {
|
|
|
|
beforeEachProviders(() => TEST_ROUTER_PROVIDERS);
|
|
|
|
registerSpecs();
|
|
|
|
describeRouter('async routes', () => {
|
|
describeWithout('children', () => {
|
|
describeWith('route data', itShouldRoute);
|
|
describeWithAndWithout('params', itShouldRoute);
|
|
});
|
|
|
|
describeWith('sync children',
|
|
() => { describeWithAndWithout('default routes', itShouldRoute); });
|
|
|
|
describeWith('async children', () => {
|
|
describeWithAndWithout('params',
|
|
() => { describeWithout('default routes', itShouldRoute); });
|
|
});
|
|
});
|
|
});
|
|
}
|