Skip to content

write test for 'last' magic string of next() function#1

Open
bpernick wants to merge 1 commit intoBigFax:masterfrom
bpernick:master
Open

write test for 'last' magic string of next() function#1
bpernick wants to merge 1 commit intoBigFax:masterfrom
bpernick:master

Conversation

@bpernick
Copy link
Copy Markdown

@bpernick bpernick commented Aug 6, 2020

Hey there! Just curious where you're at with this ticket. Noticed you've had a pr open for a while in need of tests; I've written a relatively naive test that basically just proves that the "last" magic string does in fact jump to the last middleware.

@bpernick
Copy link
Copy Markdown
Author

bpernick commented Aug 7, 2020

Are you still working on this PR? And if so, what (if any) further coverage might you need?

@BigFax
Copy link
Copy Markdown
Owner

BigFax commented Aug 8, 2020

Hey, I did not really investigate more the PR.

Personally, I no longer use next('route') and next('router') as I don't need them anymore. I reorganized my code to just use next(err) for errors. This bypass every middleware to an error handler where I manage everything (render, redirection...).

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