angular-cn/modules/@angular/platform-browser/test
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
..
browser fix(core/testing): clean up the core testing public API (#9466) 2016-06-23 17:10:22 -07:00
dom fix(platform-browser/testing): clean up public api for platform-browser/testing (#9519) 2016-06-23 16:42:25 -07:00
security fix(platform-browser/testing): clean up public api for platform-browser/testing (#9519) 2016-06-23 16:42:25 -07:00
static_assets repackaging: all the file moves 2016-05-01 20:51:00 -07:00
web_workers fix(core/testing): clean up the core testing public API (#9466) 2016-06-23 17:10:22 -07:00
browser_util_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
testing_public_spec.ts refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00