angular-cn/modules/benchpress/test/reporter
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
..
console_reporter_spec.js refactor(benchpress): export webdriver adapters in benchpress/benchpress 2015-03-02 11:31:06 -08:00
json_file_reporter_spec.js feat(tests): add a test injector 2015-03-13 18:20:02 +01:00
multi_reporter_spec.js feat(tests): add a test injector 2015-03-13 18:20:02 +01:00