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

Allows expect to accept an array of statuses #715

Merged

Conversation

juanvillegas
Copy link
Contributor

@juanvillegas juanvillegas commented Apr 12, 2021

By accepting an array of expected values for status, expect can now assert a set of returned statuses codes. This is useful when we don't know the exact code but we expect several codes that can all be valid responses: 200/204, redirects, etc. See: #389

By accepting an array of expected values for status, expect can now assert a range of returned statuses codes. This is useful when we don't know the exact code but we expect a range: 200/204, redirects, etc. See: ladjs#389
@coveralls
Copy link

Pull Request Test Coverage Report for Build 497

  • 8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 97.571%

Totals Coverage Status
Change from base Build 493: 0.1%
Covered Lines: 154
Relevant Lines: 158

💛 - Coveralls

@juanvillegas
Copy link
Contributor Author

bump?

@niftylettuce niftylettuce merged commit 7e4645c into ladjs:master Jul 21, 2021
@niftylettuce
Copy link
Collaborator

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.

None yet

3 participants