Skip to content

Commit 10c21c4

Browse files
authored
docs: corrected example code of fetch API mocking in test runner. (#7492)
Update mocking.md docs: corrected example code of fetch API mocking. Signed-off-by: Mohammed Bilal Shareef <[email protected]>
1 parent e10c6af commit 10c21c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/pages/en/learn/test-runner/mocking.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ describe('endpoints', { concurrency: true }, () => {
208208
};
209209

210210
agent
211-
.get('example.com')
211+
.get('https://example.com')
212212
.intercept({
213213
path: endpoint,
214214
method: 'GET',
@@ -230,7 +230,7 @@ describe('endpoints', { concurrency: true }, () => {
230230
};
231231

232232
agent
233-
.get('example.com')
233+
.get('https://example.com')
234234
.intercept({
235235
path: endpoint,
236236
method: 'PUT',

0 commit comments

Comments
 (0)