Skip to content

Commit fde7e9e

Browse files
committed
doc(TestInjector): fix a build error with dgeni
1 parent 8d2ee6b commit fde7e9e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

modules/angular2/src/test_lib/test_injector.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,24 @@ export function createTestInjector(bindings: List) {
6666
return rootInjector.createChild(ListWrapper.concat(_getAppBindings(), bindings));
6767
}
6868

69-
/**
70-
* Allows injecting dependencies in beforeEach() and it().
69+
/*
70+
* Allows injecting dependencies in `beforeEach()` and `it()`.
7171
*
7272
* Example:
7373
*
74-
* beforeEach(inject([Dependency, AClass], (dep, object) => {
75-
* // some code that uses `dep` and `object`
76-
* // ...
77-
* }));
74+
* ```
75+
* beforeEach(inject([Dependency, AClass], (dep, object) => {
76+
* // some code that uses `dep` and `object`
77+
* // ...
78+
* }));
7879
*
79-
* it('...', inject([AClass, AsyncTestCompleter], (object, async) => {
80-
* object.doSomething().then(() => {
81-
* expect(...);
82-
* async.done();
83-
* });
84-
* })
80+
* it('...', inject([AClass, AsyncTestCompleter], (object, async) => {
81+
* object.doSomething().then(() => {
82+
* expect(...);
83+
* async.done();
84+
* });
85+
* })
86+
* ```
8587
*
8688
* Notes:
8789
* - injecting an `AsyncTestCompleter` allow completing async tests - this is the equivalent of

0 commit comments

Comments
 (0)