From fde7e9e898ba6bfd8e1ba2a39da9ba08ed80d9b2 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 13 Mar 2015 18:48:29 +0100 Subject: [PATCH] doc(TestInjector): fix a build error with dgeni --- .../angular2/src/test_lib/test_injector.js | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/modules/angular2/src/test_lib/test_injector.js b/modules/angular2/src/test_lib/test_injector.js index d807926a8e..d53e995fc1 100644 --- a/modules/angular2/src/test_lib/test_injector.js +++ b/modules/angular2/src/test_lib/test_injector.js @@ -66,22 +66,24 @@ export function createTestInjector(bindings: List) { return rootInjector.createChild(ListWrapper.concat(_getAppBindings(), bindings)); } -/** - * Allows injecting dependencies in beforeEach() and it(). +/* + * Allows injecting dependencies in `beforeEach()` and `it()`. * * Example: * - * beforeEach(inject([Dependency, AClass], (dep, object) => { - * // some code that uses `dep` and `object` - * // ... - * })); + * ``` + * beforeEach(inject([Dependency, AClass], (dep, object) => { + * // some code that uses `dep` and `object` + * // ... + * })); * - * it('...', inject([AClass, AsyncTestCompleter], (object, async) => { - * object.doSomething().then(() => { - * expect(...); - * async.done(); - * }); - * }) + * it('...', inject([AClass, AsyncTestCompleter], (object, async) => { + * object.doSomething().then(() => { + * expect(...); + * async.done(); + * }); + * }) + * ``` * * Notes: * - injecting an `AsyncTestCompleter` allow completing async tests - this is the equivalent of