Skip to content

Commit

Permalink
Remove mock assignment to local; causing confusion. (#11)
Browse files Browse the repository at this point in the history
* Remove mock assignment to local; causing confusion.

* Fixup doc
  • Loading branch information
griffinmyers authored Feb 29, 2024
1 parent 691865d commit 9c9bd63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ And get to mocking:
```js
const dep = await http();

const mock = dep.mock({
dep.mock({
req: { method: 'POST', pathname: '/bloop' },
res: { statusCode: 200, body: 'bloop' },
});
Expand Down
2 changes: 1 addition & 1 deletion docs/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { http } from 'wirepig';

const dep = await http();

const mock = dep.mock({
dep.mock({
req: { method: 'POST', pathname: '/bloop' },
res: { statusCode: 200, body: 'bloop' },
});
Expand Down

0 comments on commit 9c9bd63

Please sign in to comment.