Skip to content

Commit dabbfa2

Browse files
authored
chore: fix docs for mockFetch
1 parent 5e8b348 commit dabbfa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ You can pass one of `us`, `friendly`, `european`, or `iso`.
120120

121121
### Mocking fetch requests
122122

123-
Airtable scripts can either use `fetch`, or in extensions `remoteFetchAsync` to make HTTP requests. You can mock these requests using the `fetchMock` setting:
123+
Airtable scripts can either use `fetch`, or in extensions `remoteFetchAsync` to make HTTP requests. You can mock these requests using the `mockFetch` setting:
124124

125125
```js
126126
const result = await runAirtableScript({
127127
script: myScript,
128128
base: baseFixture,
129-
fetchMock: (url, request) => {
129+
mockFetch: (url, request) => {
130130
return {
131131
status: 200,
132132
body: JSON.stringify({ message: 'Hello, world!' }),

0 commit comments

Comments
 (0)