@ -15,7 +15,7 @@ import {
|
||||
xit
|
||||
} from 'angular2/test_lib';
|
||||
|
||||
import {bind, Component, Injector, Inject, View} from 'angular2/core';
|
||||
import {provide, Component, Injector, Inject, View} from 'angular2/core';
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {
|
||||
Promise,
|
||||
@ -64,10 +64,13 @@ export function main() {
|
||||
beforeEachBindings(() => [
|
||||
RouteRegistry,
|
||||
DirectiveResolver,
|
||||
bind(Location).toClass(SpyLocation),
|
||||
bind(Router)
|
||||
.toFactory((registry, location) => { return new RootRouter(registry, location, MyComp); },
|
||||
[RouteRegistry, Location])
|
||||
provide(Location, {asClass: SpyLocation}),
|
||||
provide(Router,
|
||||
{
|
||||
asFactory:
|
||||
(registry, location) => { return new RootRouter(registry, location, MyComp); },
|
||||
deps: [RouteRegistry, Location]
|
||||
})
|
||||
]);
|
||||
|
||||
beforeEach(inject([TestComponentBuilder, Router], (tcBuilder, router) => {
|
||||
|
Reference in New Issue
Block a user