W3cubDocs

/Angular 12

InjectSetupWrapper

class final

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://v12.angular.io/api/core/testing/InjectSetupWrapper