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

todo: basic endpoint testing #315

Closed
iuioiua opened this issue Jun 29, 2023 · 1 comment · Fixed by #325
Closed

todo: basic endpoint testing #315

iuioiua opened this issue Jun 29, 2023 · 1 comment · Fixed by #325

Comments

@iuioiua
Copy link
Collaborator

iuioiua commented Jun 29, 2023

Before #20 can be actioned, we must validate that route handlers mostly behave within expectations. This can be done simply by asserting that handlers respond with the expected HTTP status code, a body, basic headers, etc. I want to emphasis that this testing only needs to be basic. Some of the routes we should cover include (but aren't exclusive to):

  • GET /
  • GET /blog
  • GET /pricing
  • GET /signin and other auth pages
  • GET /account (redirect to sign-page)

For guidance, see https://fresh.deno.dev/docs/examples/writing-tests

@mbhrznr
Copy link
Contributor

mbhrznr commented Jun 29, 2023

i'd tackle this one!

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 a pull request may close this issue.

2 participants