W3cubDocs

/Angular 7

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–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/testing/InjectSetupWrapper