feat(injector): handle async cyclic dependencies

This commit is contained in:
vsavkin
2014-10-06 16:24:12 -04:00
parent a0176273c5
commit e7666d0612
2 changed files with 29 additions and 13 deletions

View File

@ -150,6 +150,9 @@ export function main() {
expect(() => injector.get(Car))
.toThrowError('Cannot instantiate cyclic dependency! (Car -> Engine -> Car)');
expect(() => injector.asyncGet(Car))
.toThrowError('Cannot instantiate cyclic dependency! (Car -> Engine -> Car)');
});
it('should show the full path when error happens in a constructor', function() {