feat(core): add source to StaticInjectorError message (#19482)

This commit is contained in:
Olivier Combe
2017-11-03 19:14:05 +01:00
committed by Victor Berchet
parent 169cedd43b
commit faa621218e
11 changed files with 105 additions and 34 deletions

View File

@ -135,7 +135,7 @@ export function main() {
name = 'square';
}
const injector = Injector.create([{provide: Square, deps: []}]);
const injector = Injector.create({providers: [{provide: Square, deps: []}]});
const shape: Square = injector.get(Square);
expect(shape.name).toEqual('square');