angular-cn/modules/@angular/core/testing
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
..
animation chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
async.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
async.ts refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
async_test_completer.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
component_fixture.ts fix(core/testing): move ComponentFixture to core (#9386) 2016-06-24 12:41:49 -07:00
fake_async.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
fake_async.ts refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
lang_utils.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
lang_utils.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
logger.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
mock_application_ref.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
ng_zone_mock.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
test_component_builder.ts fix(core/testing compiler/testing): move TestComponentBuilder to core/testing (#9590) 2016-06-24 17:35:01 -07:00
test_injector.ts refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
testing.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
testing.ts refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
testing_internal.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
testing_internal.ts fix(core/testing): clean up the core testing public API (#9466) 2016-06-23 17:10:22 -07:00