refactor(core): misc changes and integrate review feedback on #19996
closes #20224
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user