Skip to content

Conversation

@fatboypunk
Copy link
Contributor

Because:
When you enter expected_body: {some_json, :json}, and the tests succeed you might think you've tested the proper json is send. But because this option isn't used that's not the case. So to guard against that we're now checking if the option that's given will actually be used, rather then ignore it the test will now raise.

  • Review required
  • Fully tested locally

Because:
When you enter `expected_body: {some_json, :json},` and the tests
succeed you might think you've tested the proper json is send. But
because this option isn't used that's not the case. So to guard against
that we're now checking if the option that's given will actually be
used, rather then ignore it the test will now raise.
@coveralls
Copy link

Pull Request Test Coverage Report for Build aca591302fc71c54d8019ad3464c409d4b98fea8-PR-19

Details

  • 3 of 5 (60.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 85.451%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/http_ex/backend/mock.ex 3 5 60.0%
Totals Coverage Status
Change from base Build 16f7673df5913e21c3b56d2027f6e5b6b0ba706d: -0.2%
Covered Lines: 464
Relevant Lines: 543

💛 - Coveralls

@fatboypunk fatboypunk merged commit 60970f5 into main Jun 3, 2025
2 checks passed
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