Skip to content

Conversation

@lamweili
Copy link
Contributor

@lamweili lamweili commented Oct 3, 2022

The changes in PR #767 dropped code coverage for: https://github.com/visionmedia/supertest/blob/e064b5ae71e1dfa3e1a74745fda527ac542e1878/lib/test.js#L287

This is because the wrapAssertFn has handled the error try-catch, leaving _assertFunction's catch unreachable.


Added a test case to directly access _assertFunction for code coverage purposes. Restored 100% code coverage.

@lamweili
Copy link
Contributor Author

lamweili commented Oct 4, 2022

The tests are failing in the CI because of coveralls. Refer to PR #794.

@titanism titanism merged commit a225e95 into forwardemail:master Oct 4, 2022
@titanism
Copy link
Collaborator

titanism commented Oct 4, 2022

Just waiting on this test https://github.com/visionmedia/supertest/actions/runs/3179015233 - I fixed codecov for us - TY for all this. Once they all pass I'll do a minor semver bump

@lamweili lamweili deleted the code-coverage branch October 4, 2022 06:57
@lamweili
Copy link
Contributor Author

lamweili commented Oct 4, 2022

Thanks for the release, @titanism!

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