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

Middleware execute returns a promise (v3) #1371

Closed
wants to merge 12 commits into from

Conversation

timkinnane
Copy link

Updated my PR #1370 with v3 changes, including refactoring async middleware tests in js (from coffeescript) and I added some tests for response class, showing variations using / not-using returned promise.

There were no tests for the response class previous to this, so I'm pretty positive I haven't done it the best way, but I've at least provided a baseline for the team to review. Please give me feedback for how I can improve those tests.

Copy link

@WOLVIE97 WOLVIE97 left a comment

Choose a reason for hiding this comment

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

Nice job.

@joeyguerra
Copy link
Member

We should probably use async/await instead.

@joeyguerra joeyguerra closed this Jul 24, 2023
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.

4 participants