API > @angular/core > @angular/core/testingmode_edit codeInjectSetupWrapperlinkclass目录构造函数方法inject()class InjectSetupWrapper { constructor(_moduleDef: () => TestModuleMetadata) inject(tokens: any[], fn: Function): () => any } class InjectSetupWrapper { constructor(_moduleDef: () => TestModuleMetadata) inject(tokens: any[], fn: Function): () => any } 构造函数linkconstructor(_moduleDef: () => TestModuleMetadata) constructor(_moduleDef: () => TestModuleMetadata) 参数 _moduleDef () => TestModuleMetadata方法linkinject() linkmode_edit codeinject(tokens: any[], fn: Function): () => any inject(tokens: any[], fn: Function): () => any 参数 tokens any[] fn Function返回值() => any