diff --git a/README.md b/README.md index 5f6e371..c29d5f4 100644 --- a/README.md +++ b/README.md @@ -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' }, }); diff --git a/docs/http.md b/docs/http.md index 10a9ac8..d79d527 100644 --- a/docs/http.md +++ b/docs/http.md @@ -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' }, });