refactor(testing): type beforeEachProviders (#9023)
these are valid otherwise ```typescript beforeEachProviders(1) beforeEachProviders('wat') beforeEachProviders([ Http ]) ```
This commit is contained in:
@ -86,7 +86,7 @@ jsmBeforeEach(() => { testInjector.reset(); });
|
|||||||
*
|
*
|
||||||
* {@example testing/ts/testing.ts region='beforeEachProviders'}
|
* {@example testing/ts/testing.ts region='beforeEachProviders'}
|
||||||
*/
|
*/
|
||||||
export function beforeEachProviders(fn): void {
|
export function beforeEachProviders(fn: () => Array<any>): void {
|
||||||
jsmBeforeEach(() => {
|
jsmBeforeEach(() => {
|
||||||
var providers = fn();
|
var providers = fn();
|
||||||
if (!providers) return;
|
if (!providers) return;
|
||||||
|
Reference in New Issue
Block a user