Skip to content

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

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

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 requested review from oxy and code-asher February 9, 2021 18:00
@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.

@jsjoeio jsjoeio force-pushed the add-unit-tests-http branch from 7055dba to c7c851d Compare February 9, 2021 20:13
@jsjoeio jsjoeio requested a review from oxy February 9, 2021 20:16
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 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.

2 participants