UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

75 lines (38 loc) 1.07 kB
--- lang: en title: 'API docs: testlab.inject' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/testlab permalink: /doc/en/lb4/apidocs.testlab.inject.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/testlab](./testlab.md) &gt; [inject](./testlab.inject.md) ## inject() function **Signature:** ```typescript inject: (dispatchFunc: ShotListener, options: ShotRequestOptions) => Promise<ResponseObject> ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> dispatchFunc </td><td markdown="1"> ShotListener </td><td markdown="1"> </td></tr> <tr><td markdown="1"> options </td><td markdown="1"> ShotRequestOptions </td><td markdown="1"> </td></tr> </tbody></table> **Returns:** Promise&lt;ResponseObject&gt;