angular-cn/modules/angular2/test/forms
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
..
form_builder_spec.js feat(forms): add form builder 2015-03-10 18:12:50 -07:00
integration_spec.js feat(tests): add a test injector 2015-03-13 18:20:02 +01:00
model_spec.js refactor(forms): make form group responsible for supporting optional controls 2015-03-10 18:12:30 -07:00
validators_spec.js clean(forms): cleanup 2015-02-26 09:35:30 -08:00