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 on to the mitigation in https://github.com/visionmedia/supertest/… #735

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

benjosantony
Copy link
Contributor

Add on to the mitigation in https://github.com/visionmedia/supertest/pull/728/commits.

  • As [].every(val => typeof val === 'number')) evaluates to true in legit cases where we expect the body to return empty array the tests will fail.
  • Change is to also check for array length and defaulting to consider it as body instead of empty list of statues.

@niftylettuce
Copy link
Collaborator

v6.1.6 released

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