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

Increase test coverage for @data-eden/network #16

Open
3 of 5 tasks
rwjblue opened this issue Jun 6, 2022 · 0 comments
Open
3 of 5 tasks

Increase test coverage for @data-eden/network #16

rwjblue opened this issue Jun 6, 2022 · 0 comments
Assignees
Labels

Comments

@rwjblue
Copy link
Member

rwjblue commented Jun 6, 2022

  • add tests for a middleware to handle errors in following middlewares (and "recovering")
  • add cases where HTTP method is changed by the middleware (aka "query tunneling")
  • calling buildFetch([]) (e.g. when you don't have any middlewares)
  • calling buildFetch with a few different middlewares that rely on ordering, and assert that they are called in the correct order
  • calling buildFetch multiple times makes the first call throw a custom error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants