angular / 6.1.10 / api / core / testing / withmodule.html /

withModule

function

withModule(moduleDef: TestModuleMetadata, fn?: Function | null): (() => any) | InjectSetupWrapper

Parameters

moduleDef

Type: TestModuleMetadata.

fn

Type: Function | null.

Optional. Default is undefined.

Returns

(() => any) | InjectSetupWrapper

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/testing/withModule