angular/modules/angular2/test/core
Victor Berchet 33b5ba863e feat(tests): add a test injector
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();
  });
2015-03-13 18:20:02 +01:00
..
annotations refactor(directives): directives use declare that they listen to onChange in the annotations 2015-02-06 13:53:49 -08:00
compiler feat(tests): add a test injector 2015-03-13 18:20:02 +01:00
events feat(compiler): DOM adapters + html5lib implementation; misc fixes 2015-02-27 16:49:14 -08:00
zone feat(tests): add a test injector 2015-03-13 18:20:02 +01:00
application_spec.js feat(tests): add a test injector 2015-03-13 18:20:02 +01:00