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

feat(testing): add unit tests for src/common/http #2702

Merged
merged 1 commit into from Feb 10, 2021

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Feb 9, 2021

This PR adds a few tests for src/common/http. Note: intentionally selected add-unit-tests-constants as the base since I branched off it.

Screenshot

image

It increases our code coverage (Lines) from 49.83% to 50.09% (↑ 0.0.26%).
🟩 100% Line coverage (last 100) for src/node/http.ts
image

@jsjoeio jsjoeio added this to the v3.8.2 milestone Feb 9, 2021
@jsjoeio jsjoeio self-assigned this Feb 9, 2021
@jsjoeio jsjoeio changed the title feat: add tests for src/common/http feat(testing): add unit tests for src/common/http Feb 9, 2021
Copy link

@oxy oxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think BadRequest should only need to appear once.

test/http.test.ts Outdated Show resolved Hide resolved
Copy link

@oxy oxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jsjoeio jsjoeio merged commit f1337d5 into add-unit-tests-constants Feb 10, 2021
@jsjoeio jsjoeio deleted the add-unit-tests-http branch February 10, 2021 17:57
@jsjoeio jsjoeio added this to In progress in Improve Testing via automation Feb 24, 2021
@jsjoeio jsjoeio moved this from In progress to Done in Improve Testing Feb 24, 2021
@jsjoeio jsjoeio added the testing Anything related to testing label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants