Skip to content

Commit

Permalink
docs: minor update to provider states heading
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 15, 2021
1 parent 9c32bb8 commit e74840a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/consumer.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Two builder methods exist for binary/file payloads:
- `WithBinaryBody` accepts a `[]byte` for matching on binary payloads (e.g. images)
- `WithMultipartFile` accepts a path to file from the file system, and the multipart boundary

### Provider States
### Managing Test Data (using Provider States)

There are several ways to define a provider state:

Expand Down
2 changes: 1 addition & 1 deletion docs/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestV3HTTPProvider(t *testing.T) {
}
```

### Provider States
### Managing Data (Provider States)

If you have defined any states (as denoted by a `Given()`) in your consumer tests, the `Verifier` can put the provider into the correct state prior to sending the actual request for validation. For example, the provider can use the state to mock away certain database queries. To support this, set up a `StateHandler` for each state using hooks on the `StateHandlers` property. Here is an example:

Expand Down

0 comments on commit e74840a

Please sign in to comment.