Skip to content

Update tests to ensure all requests are mocked#137

Merged
mattt merged 2 commits intomainfrom
mattt/nock-no-network
Sep 21, 2023
Merged

Update tests to ensure all requests are mocked#137
mattt merged 2 commits intomainfrom
mattt/nock-no-network

Conversation

@mattt
Copy link
Copy Markdown
Contributor

@mattt mattt commented Sep 21, 2023

This PR updates the test suite to disable network access which prevents unexpected requests. It also adds an assertion after every test case to check that all mocked responses are matched with requests made in a test.

@mattt mattt requested a review from aron September 21, 2023 13:41
@mattt mattt merged commit 46fbca2 into main Sep 21, 2023
@mattt mattt deleted the mattt/nock-no-network branch September 21, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant