Skip to content

Commit

Permalink
Update mocking.md
Browse files Browse the repository at this point in the history
docs: corrected example code of fetch API mocking.

Signed-off-by: Mohammed Bilal Shareef <[email protected]>
  • Loading branch information
bilalshareef committed Feb 12, 2025
1 parent e52e6db commit 6bed9d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/site/pages/en/learn/test-runner/mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ describe('endpoints', { concurrency: true }, () => {
};

agent
.get('example.com')
.get('https://example.com')
.intercept({
path: endpoint,
method: 'GET',
Expand All @@ -230,7 +230,7 @@ describe('endpoints', { concurrency: true }, () => {
};

agent
.get('example.com')
.get('https://example.com')
.intercept({
path: endpoint,
method: 'PUT',
Expand Down

0 comments on commit 6bed9d9

Please sign in to comment.