refactor(core): misc changes and integrate review feedback on #19996

closes #20224
This commit is contained in:
Victor Berchet
2017-11-06 11:20:45 -08:00
parent a460066972
commit 6e8e3bd248
5 changed files with 13 additions and 12 deletions

View File

@ -229,10 +229,11 @@ export function main() {
const overwrittenValue = {};
TestBed.overrideProvider(SomeDep, {useFactory: () => overwrittenValue, deps: []});
const fixture =
TestBed.overrideProvider(SomeDep, {useFactory: () => overwrittenValue, deps: []})
.configureTestingModule({providers: [SomeDep], imports: [SomeModule]})
.createComponent(SomePublicComponent);
const fixture = TestBed.configureTestingModule({providers: [SomeDep], imports: [SomeModule]})
.createComponent(SomePublicComponent);
expect(fixture.componentInstance.dep).toBe(overwrittenValue);
});