doc(TestInjector): fix a build error with dgeni
This commit is contained in:
parent
8d2ee6bbda
commit
fde7e9e898
|
@ -66,11 +66,12 @@ export function createTestInjector(bindings: List) {
|
||||||
return rootInjector.createChild(ListWrapper.concat(_getAppBindings(), bindings));
|
return rootInjector.createChild(ListWrapper.concat(_getAppBindings(), bindings));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Allows injecting dependencies in beforeEach() and it().
|
* Allows injecting dependencies in `beforeEach()` and `it()`.
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
|
* ```
|
||||||
* beforeEach(inject([Dependency, AClass], (dep, object) => {
|
* beforeEach(inject([Dependency, AClass], (dep, object) => {
|
||||||
* // some code that uses `dep` and `object`
|
* // some code that uses `dep` and `object`
|
||||||
* // ...
|
* // ...
|
||||||
|
@ -82,6 +83,7 @@ export function createTestInjector(bindings: List) {
|
||||||
* async.done();
|
* async.done();
|
||||||
* });
|
* });
|
||||||
* })
|
* })
|
||||||
|
* ```
|
||||||
*
|
*
|
||||||
* Notes:
|
* Notes:
|
||||||
* - injecting an `AsyncTestCompleter` allow completing async tests - this is the equivalent of
|
* - injecting an `AsyncTestCompleter` allow completing async tests - this is the equivalent of
|
||||||
|
|
Loading…
Reference in New Issue