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

Add example for testing a middleware function #175

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adayNU
Copy link

@adayNU adayNU commented Jan 12, 2021

This change adds an example of how to test a middleware function.

This change adds an example of how to test a middleware function.
Copy link
Contributor

@lammel lammel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice @adayNU !

Please fix the whitespace vs. tabs. Examples usually use 2 spaces.

I think it would be better to not mix handler and middleware tests. Could you simplify the test case and that to the Testing Middleware section please.

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.

None yet

2 participants