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:
KostyaTretyak 2020-01-14 01:08:12 +02:00 committed by Miško Hevery
parent d41988437e
commit 2a8dd4758c
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ function factoryFn(a: any){}
const sportsCar = injector.get(SportsCar);
expect(car).toBeAnInstanceOf(SportsCar);
expect(car).toBe(sportsCar);
expect(sportsCar.engine).toBeAnInstanceOf(Engine);
});
it('should support multiProviders', () => {