Skip to content

Commit 6b02cb9

Browse files
committed
test(router): rename helpers in test
1 parent 88c607d commit 6b02cb9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/angular2/test/router/router_spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function main() {
4343

4444

4545
it('should navigate based on the initial URL state', inject([AsyncTestCompleter], (async) => {
46-
var outlet = makeDummyRef();
46+
var outlet = makeDummyOutlet();
4747

4848
router.config({'path': '/', 'component': 'Index' })
4949
.then((_) => router.registerOutlet(outlet))
@@ -56,7 +56,7 @@ export function main() {
5656

5757

5858
it('should activate viewports and update URL on navigate', inject([AsyncTestCompleter], (async) => {
59-
var outlet = makeDummyRef();
59+
var outlet = makeDummyOutlet();
6060

6161
router.registerOutlet(outlet)
6262
.then((_) => {
@@ -71,7 +71,7 @@ export function main() {
7171
}));
7272

7373
it('should navigate after being configured', inject([AsyncTestCompleter], (async) => {
74-
var outlet = makeDummyRef();
74+
var outlet = makeDummyOutlet();
7575

7676
router.registerOutlet(outlet)
7777
.then((_) => router.navigate('/a'))
@@ -89,10 +89,10 @@ export function main() {
8989

9090
@proxy
9191
@IMPLEMENTS(RouterOutlet)
92-
class DummyOutletRef extends SpyObject {noSuchMethod(m){return super.noSuchMethod(m)}}
92+
class DummyOutlet extends SpyObject {noSuchMethod(m){return super.noSuchMethod(m)}}
9393

94-
function makeDummyRef() {
95-
var ref = new DummyOutletRef();
94+
function makeDummyOutlet() {
95+
var ref = new DummyOutlet();
9696
ref.spy('activate').andCallFake((_) => PromiseWrapper.resolve(true));
9797
ref.spy('canActivate').andCallFake((_) => PromiseWrapper.resolve(true));
9898
ref.spy('canDeactivate').andCallFake((_) => PromiseWrapper.resolve(true));

0 commit comments

Comments
 (0)