Skip to content

Commit af2f5c3

Browse files
committed
cleanup(router): removes router
1 parent 65be81b commit af2f5c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+19
-5172
lines changed

build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ for PACKAGE in \
4949
platform-browser-dynamic \
5050
platform-server \
5151
http \
52-
router \
5352
router-deprecated \
5453
upgrade \
5554
compiler-cli

modules/@angular/compiler-cli/test/reflector_host_spec.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
22
import * as ts from 'typescript';
33

4-
import {ReflectorHost, ReflectorHostContext} from '../src/reflector_host';
4+
import {ReflectorHost} from '../src/reflector_host';
55

66
import {Directory, Entry, MockCompilerHost, MockContext} from './mocks';
77

@@ -64,11 +64,13 @@ describe('reflector_host', () => {
6464
});
6565

6666
it('should be able to produce a symbol for an exported symbol', () => {
67-
expect(reflectorHost.findDeclaration('@angular/router', 'foo', 'main.ts')).toBeDefined();
67+
expect(reflectorHost.findDeclaration('@angular/router-deprecated', 'foo', 'main.ts'))
68+
.toBeDefined();
6869
});
6970

7071
it('should be able to produce a symbol for values space only reference', () => {
71-
expect(reflectorHost.findDeclaration('@angular/router/src/providers', 'foo', 'main.ts'))
72+
expect(
73+
reflectorHost.findDeclaration('@angular/router-deprecated/src/providers', 'foo', 'main.ts'))
7274
.toBeDefined();
7375
});
7476

@@ -90,7 +92,7 @@ const FILES: Entry = {
9092
'src': {
9193
'main.ts': `
9294
import * as c from '@angular/core';
93-
import * as r from '@angular/router';
95+
import * as r from '@angular/router-deprecated';
9496
import * as u from './lib/utils';
9597
import * as cs from './lib/collections';
9698
import * as u2 from './lib2/utils2';
@@ -105,7 +107,8 @@ const FILES: Entry = {
105107
'core.d.ts': dummyModule,
106108
'core.metadata.json':
107109
`{"__symbolic":"module", "version": 1, "metadata": {"foo": {"__symbolic": "class"}}}`,
108-
'router': {'index.d.ts': dummyModule, 'src': {'providers.d.ts': dummyModule}}
110+
'router-deprecated':
111+
{'index.d.ts': dummyModule, 'src': {'providers.d.ts': dummyModule}}
109112
}
110113
}
111114
}

modules/@angular/core/test/dev_mode_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {isDevMode} from '@angular/core';
2-
32
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../testing';
43

54
export function main() {

modules/@angular/core/test/fake_async_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
22
import {fakeAsync, flushMicrotasks, Log, tick, discardPeriodicTasks,} from '@angular/core/testing';
3-
import {TimerWrapper, PromiseWrapper} from '../../router/src/facade/async';
4-
import {BaseException} from '../../router/src/facade/exceptions';
3+
import {TimerWrapper, PromiseWrapper} from '../../router-deprecated/src/facade/async';
4+
import {BaseException} from '../../router-deprecated/src/facade/exceptions';
55
import {Parser} from '../../compiler/src/expression_parser/parser';
66

77
export function main() {

modules/@angular/core/test/testing_internal_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {SpyObject} from '@angular/core/testing/testing_internal';
22

33
import {MapWrapper} from '../../platform-browser/src/facade/collection';
4-
import {RegExpWrapper} from '../../router/src/facade/lang';
4+
import {RegExpWrapper} from '../../router-deprecated/src/facade/lang';
55
import {beforeEach, containsRegexp, ddescribe, describe, expect, iit, it, tick} from '../testing';
66

77
class TestObj {

modules/@angular/platform-browser-dynamic/test/testing_public_browser_spec.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {it, iit, xit, describe, ddescribe, xdescribe, expect, beforeEach, beforeEachProviders, inject,} from '@angular/core/testing';
22
import {async, fakeAsync, flushMicrotasks, Log, tick,} from '@angular/core/testing';
33

4-
import {ROUTER_FAKE_PROVIDERS} from '@angular/router/testing';
5-
import {ROUTER_DIRECTIVES, Routes, Route} from '@angular/router';
4+
import {ROUTER_DIRECTIVES, Route} from '@angular/router-deprecated';
65

76

87
import {Component, bind} from '@angular/core';
@@ -37,10 +36,6 @@ class BadTemplateUrl {
3736
`<a [routerLink]="['One']">one</a> <a [routerLink]="['Two']">two</a><router-outlet></router-outlet>`,
3837
directives: [ROUTER_DIRECTIVES]
3938
})
40-
@Routes([
41-
new Route({path: '/One', component: BadTemplateUrl}),
42-
new Route({path: '/Two', component: ExternalTemplateComp}),
43-
])
4439
class TestRouterComponent {
4540
}
4641

@@ -169,15 +164,4 @@ export function main() {
169164
10000); // Long timeout here because this test makes an actual XHR, and is slow on Edge.
170165
});
171166
});
172-
173-
describe('apps with router components', () => {
174-
beforeEachProviders(() => [ROUTER_FAKE_PROVIDERS]);
175-
176-
it('should build without a problem',
177-
async(inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {
178-
tcb.createAsync(TestRouterComponent).then((fixture) => {
179-
expect(fixture.nativeElement).toHaveText('one two');
180-
});
181-
})));
182-
});
183167
}

modules/@angular/router/index.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

modules/@angular/router/package.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

modules/@angular/router/platform_browser_private.dart

Lines changed: 0 additions & 1 deletion
This file was deleted.

modules/@angular/router/platform_browser_private.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)