Skip to content

Commit

Permalink
rearrange docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Mar 14, 2020
1 parent b65e9f5 commit cf95e6e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/_api-mocking/catch.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ".catch(response)"
navTitle: .catch()
position: 5
position: 8
description: |-
Specifies how to respond to calls to `fetch` that don't match any mocks.
parentMethodGroup: mocking
Expand Down
2 changes: 1 addition & 1 deletion docs/_api-mocking/getAnyOnce_postAnyOnce.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ".getAnyOnce(), .postAnyOnce(), .putAnyOnce(), .deleteAnyOnce(), .headAnyOnce(), .patchAnyOnce()"
navTitle: .getAnyOnce(), .postAnyOnce() ...
position: 3
position: 7
description: |-
Shorthands for `anyOnce()` that only respond to requests using a particular http method.
parentMethodGroup: mocking
Expand Down
2 changes: 1 addition & 1 deletion docs/_api-mocking/getAny_postAny.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ".getAny(), .postAny(), .putAny(), .deleteAny(), .headAny(), .patchAny()"
navTitle: .getAny(), .postAny() ...
position: 3
position: 5.5
description: |-
Shorthands for `any()` that only respond to requests using a particular http method.
parentMethodGroup: mocking
Expand Down
2 changes: 1 addition & 1 deletion docs/_api-mocking/get_post.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ".get(), .post(), .put(), .delete(), .head(), .patch()"
navTitle: .get(), .post() ...
position: 3
position: 2
description: |-
Shorthands for `mock()` that create routes that only respond to requests using a particular http method.
parentMethodGroup: mocking
Expand Down
2 changes: 1 addition & 1 deletion docs/_api-mocking/mock.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ".mock(matcher, response, options)"
navTitle: .mock()
position: 1.0
position: 1
description: |
Initialises or extends a stub implementation of fetch, applying a `route` that matches `matcher`, delivers a `Response` configured using `response`, and that respects the additional `options`. The stub will record its calls so they can be inspected later. If `.mock` is called on the top level `fetch-mock` instance, this stub function will also replace `fetch` globally. Calling `.mock()` with no arguments will carry out this stubbing without defining any mock responses.
Expand Down
3 changes: 2 additions & 1 deletion docs/_api-mocking/mock_any.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: ".any(response, options)"
position: 2
navTitle: .any()
position: 5
description: |-
Shorthand for `mock()` which creates a route that will return a response to any fetch request.
parentMethodGroup: mocking
Expand Down
3 changes: 2 additions & 1 deletion docs/_api-mocking/mock_any_once.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: ".anyOnce(response, options)"
position: 2
navTitle: .anyOnce()
position: 6
description: |-
Shorthand for `mock()` which creates a route that will return a response to any single fetch request.
parentMethodGroup: mocking
Expand Down
2 changes: 1 addition & 1 deletion docs/_api-mocking/mock_once.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ".once()"
position: 2
position: 3
description: |-
Shorthand for `mock()` which creates a route that can only mock a single request. (see `repeat` option above)
parentMethodGroup: mocking
Expand Down
2 changes: 1 addition & 1 deletion docs/_api-mocking/spy.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: ".spy()"
navTitle: .spy()
position: 6
position: 9
description: |-
Records call history while passing each call on to `fetch` to be handled by the network
parentMethodGroup: mocking
Expand Down

0 comments on commit cf95e6e

Please sign in to comment.