From 9c9bd63c390a27668b23af609b885d682d560f10 Mon Sep 17 00:00:00 2001 From: Will Myers Date: Wed, 28 Feb 2024 19:35:09 -0700 Subject: [PATCH] Remove mock assignment to local; causing confusion. (#11) * Remove mock assignment to local; causing confusion. * Fixup doc --- README.md | 2 +- docs/http.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' }, });