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

test(#767): 100% code coverage #795

Merged
merged 1 commit into from
Oct 4, 2022
Merged

test(#767): 100% code coverage #795

merged 1 commit into from
Oct 4, 2022

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 ladjs: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