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

Cleans up test boilerplates and removes unneed lodash dependencies #57

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

acolchado
Copy link
Collaborator

No description provided.

Copy link
Contributor

@subingp subingp left a comment

Choose a reason for hiding this comment

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

Looks good, have minor comment

@@ -30,7 +28,7 @@ module.exports = function (

this.app.response.sendStatusAsync = function (...args) {
return Promise.all(args)
.then((results) => this.sendStatus(_first(results).status))
.then((results) => this.sendStatus(results[0].status))
Copy link
Contributor

Choose a reason for hiding this comment

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

this can break if the result has no records

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So can the original. I didn't want to change the contract/expectation for the caller by silencing an error that they may be anticipating to bubble up if this is met.

@acolchado acolchado merged commit 64d2060 into main Jun 13, 2023
@acolchado acolchado deleted the AC/lodash-and-test-cleanup branch June 13, 2023 19:45
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