Skip to content

Commit a37dd19

Browse files
ritvik130mcollina
andauthored
Update docs/api/MockAgent.md
Co-authored-by: Matteo Collina <[email protected]>
1 parent 4c127c7 commit a37dd19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/api/MockAgent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ for await (const data of result2.body) {
179179
```
180180
#### Example - Mock different requests within the same file
181181
```js
182-
import { MockAgent, setGlobalDispatcher } = require('undici');
182+
const { MockAgent, setGlobalDispatcher } = require('undici');
183183
const agent = new MockAgent();
184184
agent.disableNetConnect();
185185
setGlobalDispatcher(agent);

0 commit comments

Comments
 (0)