W3cubDocs

/Angular 11

InjectSetupWrapper

class

class InjectSetupWrapper {
  constructor(_moduleDef: () => TestModuleMetadata)
  inject(tokens: any[], fn: Function): () => any
}

Constructor

constructor(_moduleDef: () => TestModuleMetadata)

Parameters
_moduleDef () => TestModuleMetadata

Methods

inject(tokens: any[], fn: Function): () => any

Parameters
tokens any[]
fn Function
Returns

() => any

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/core/testing/InjectSetupWrapper