mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fixes #614 Asynchronous test should inject an AsyncTestCompleter: Before: it("async test", (done) => { // ... done(); }); After: it("async test", inject([AsyncTestCompleter], (async) => { // ... async.done(); })); Note: inject() is currently a function and the first parameter is the array of DI tokens to inject as the test function parameters. This construct is linked to Traceur limitations. The planned syntax is: it("async test", @Inject (async: AsyncTestCompleter) => { // ... async.done(); }); |
||
|---|---|---|
| .. | ||
| change_detection | ||
| core | ||
| di | ||
| directives | ||
| dom | ||
| facade | ||
| forms | ||
| mock | ||
| reflection | ||
| services | ||
| test_lib | ||
| transform | ||