refactor(testing): type beforeEachProviders (#9023)

these are valid otherwise
```typescript
beforeEachProviders(1)
beforeEachProviders('wat')
beforeEachProviders([
  Http
])
```
This commit is contained in:
PatrickJS 2016-06-04 19:52:51 -07:00 committed by Miško Hevery
parent 994d9212c1
commit 53083c0b52
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ jsmBeforeEach(() => { testInjector.reset(); });
*
* {@example testing/ts/testing.ts region='beforeEachProviders'}
*/
export function beforeEachProviders(fn): void {
export function beforeEachProviders(fn: () => Array<any>): void {
jsmBeforeEach(() => {
var providers = fn();
if (!providers) return;