refactor(testing): type beforeEachProviders (#9023)
these are valid otherwise ```typescript beforeEachProviders(1) beforeEachProviders('wat') beforeEachProviders([ Http ]) ```
This commit is contained in:
parent
994d9212c1
commit
53083c0b52
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue