Skip to content

Commit

Permalink
Update unregistered_mock example to mock a POST (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
schobster authored Jan 17, 2024
1 parent 147c4c0 commit e7e68f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl Debug for Matcher {
/// mock_server.register(mock).await;
///
/// // We won't register this mock instead.
/// let unregistered_mock = Mock::given(method("GET")).respond_with(response);
/// let unregistered_mock = Mock::given(method("POST")).respond_with(response);
///
/// // Act
/// let status = surf::get(&mock_server.uri())
Expand Down

0 comments on commit e7e68f0

Please sign in to comment.