MCPcopy Create free account
hub / github.com/angular/angular / MyMod2

Class MyMod2

packages/core/test/test_bed_spec.ts:1201–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199 it('when provider is a "regular" provider', () => {
1200 MyMod.multi = false;
1201 @NgModule({imports: [MyMod.forRoot()]})
1202 class MyMod2 {}
1203 TestBed.configureTestingModule({imports: [MyMod2]});
1204 TestBed.overrideProvider(TOKEN, {useValue: ['override']});
1205 expect(TestBed.inject(TOKEN)).toEqual(['override']);

Callers

nothing calls this directly

Calls 2

NgModuleInterface · 0.90
forRootMethod · 0.45

Tested by

no test coverage detected