angular-cn/modules/@angular/core
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
..
src test: add public api golden files 2016-06-23 14:26:40 -07:00
test fix(core/testing): move ComponentFixture to core (#9386) 2016-06-24 12:41:49 -07:00
testing refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
core.dart fix(perf): support prod mode again 2016-06-17 15:59:27 -07:00
index.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
package.json chore(package.json): make the packages installable 2016-05-27 17:21:34 -07:00
private_export.dart repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
private_export.ts feat(core): add `@Component.precompile` and `ComponentFactoryResolver` 2016-06-23 12:10:04 -07:00
rollup.config.js build: fix source map paths for npm packages 2016-05-03 13:36:33 -06:00
testing.ts fix(core/testing compiler/testing): move TestComponentBuilder to core/testing (#9590) 2016-06-24 17:35:01 -07:00
tsconfig-es5.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00
tsconfig-es2015.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00