test(core): check dependency in extended child (#34767)
Related to https://github.com/angular/angular/issues/31337 PR Close #34767
This commit is contained in:
parent
d41988437e
commit
2a8dd4758c
|
@ -159,6 +159,7 @@ function factoryFn(a: any){}
|
||||||
const sportsCar = injector.get(SportsCar);
|
const sportsCar = injector.get(SportsCar);
|
||||||
expect(car).toBeAnInstanceOf(SportsCar);
|
expect(car).toBeAnInstanceOf(SportsCar);
|
||||||
expect(car).toBe(sportsCar);
|
expect(car).toBe(sportsCar);
|
||||||
|
expect(sportsCar.engine).toBeAnInstanceOf(Engine);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should support multiProviders', () => {
|
it('should support multiProviders', () => {
|
||||||
|
|
Loading…
Reference in New Issue