From 53083c0b5230af2d67ecf2c3c4cece2e14e2e03a Mon Sep 17 00:00:00 2001 From: PatrickJS Date: Sat, 4 Jun 2016 19:52:51 -0700 Subject: [PATCH] refactor(testing): type beforeEachProviders (#9023) these are valid otherwise ```typescript beforeEachProviders(1) beforeEachProviders('wat') beforeEachProviders([ Http ]) ``` --- modules/@angular/core/testing/testing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/core/testing/testing.ts b/modules/@angular/core/testing/testing.ts index c01693d550..85758b1d97 100644 --- a/modules/@angular/core/testing/testing.ts +++ b/modules/@angular/core/testing/testing.ts @@ -86,7 +86,7 @@ jsmBeforeEach(() => { testInjector.reset(); }); * * {@example testing/ts/testing.ts region='beforeEachProviders'} */ -export function beforeEachProviders(fn): void { +export function beforeEachProviders(fn: () => Array): void { jsmBeforeEach(() => { var providers = fn(); if (!providers) return;