export inject(tokens: any[], fn: Function) : FunctionWithParamTokens
export inject(tokens: any[], fn: Function) : FunctionWithParamTokens
exported from angular2/testing defined in angular2/src/testing/test_injector.ts (line 193)
Allows injecting dependencies in beforeEach()
and it()
.
Example:
Notes:
- inject is currently a function because of some Traceur limitation the syntax should
eventually
becomes
it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });