Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API mocks #14

Merged
merged 3 commits into from
Mar 12, 2024
Merged

API mocks #14

merged 3 commits into from
Mar 12, 2024

Conversation

blendtwenty
Copy link
Contributor

This PR adds a test to DogePrice, demonstrating how to mock a components API request.

  • A good component has a test or two.
  • Good unit tests don't depend on network requests and availability of other services

Hence, being able to mock an api request/response is useful.

@blendtwenty blendtwenty merged commit 6fa87a7 into main Mar 12, 2024
1 check passed
@blendtwenty blendtwenty deleted the api-mocks branch March 12, 2024 04:29
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