angular-docs-cn/tools/public_api_guard
Julie Ralph 40b907a657 refactor(testing): remove wrapping of Jasmine functions (#9564)
Instead, the async function now determines whether it should return a promise
or instead call a done function parameter. Importing Jasmine functions
from `@angular/core/testing` is no longer necessary and is now deprecated.

Additionally, beforeEachProviders is also deprecated, as it is specific
to the testing framework. Instead, use the new addProviders method directly.

Before:
```js
import {beforeEachProviders, it, describe, inject} from 'angular2/testing/core';

describe('my code', () => {
  beforeEachProviders(() => [MyService]);

  it('does stuff', inject([MyService], (service) => {
    // actual test
  });
});
```

After:
```js
import {addProviders, inject} from 'angular2/testing/core';

describe('my code', () => {
  beforeEach(() => {
    addProviders([MyService]);
  });

  it('does stuff', inject([MyService], (service) => {
    // actual test
  });
});
```
2016-06-24 17:48:35 -07:00
..
common fix(common/testing): remove internal MockLocationStrategy from common/testing (#9562) 2016-06-24 12:41:57 -07:00
compiler fix(core/testing compiler/testing): move TestComponentBuilder to core/testing (#9590) 2016-06-24 17:35:01 -07:00
core refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
forms feat(forms): make valueChanges and statusChanges available on abstract control directives 2016-06-24 14:37:19 -07:00
http chore(testing): upgrade ts-api-guardian to 0.1.3 2016-06-23 18:19:32 -07:00
platform-browser chore(testing): upgrade ts-api-guardian to 0.1.3 2016-06-23 18:19:32 -07:00
platform-browser-dynamic test: add public api golden files 2016-06-23 14:26:40 -07:00
platform-server test: add public api golden files 2016-06-23 14:26:40 -07:00
router chore(testing): upgrade ts-api-guardian to 0.1.3 2016-06-23 18:19:32 -07:00
upgrade chore(testing): upgrade ts-api-guardian to 0.1.3 2016-06-23 18:19:32 -07:00