Skip to content

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.

2 participants