angular-cn/modules
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
..
angular2 feat(tests): add a test injector 2015-03-13 18:20:02 +01:00
benchmarks refactor(PropertySetter): use the global reflector 2015-03-12 19:49:34 +01:00
benchmarks_external refactor(tests): move files from `angular2/e2e_test` to `angular2/src/test_lib` 2015-03-02 14:38:02 -08:00
benchpress feat(tests): add a test injector 2015-03-13 18:20:02 +01:00
examples refactor(PropertySetter): use the global reflector 2015-03-12 19:49:34 +01:00
rtts_assert Don't use the for..of syntax in AtScript. 2015-02-27 15:26:53 -08:00