Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add tests for update.ts #4835

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
jsjoeio merged 10 commits into main from jsjoeio-update-test
Feb 14, 2022
Merged

feat: add tests for update.ts #4835

jsjoeio merged 10 commits into main from jsjoeio-update-test
Feb 14, 2022

Conversation

Copy link
Contributor

@jsjoeio jsjoeio commented Feb 7, 2022

This PR adds more tests for update.ts.

Fixes #4831

@jsjoeio jsjoeio added the testing Anything related to testing label Feb 7, 2022
@jsjoeio jsjoeio requested a review from a team February 7, 2022 23:19
@jsjoeio jsjoeio self-assigned this Feb 7, 2022
@jsjoeio jsjoeio temporarily deployed to CI February 7, 2022 23:19 Inactive
Copy link

github-actions bot commented Feb 7, 2022
edited
Loading

✨ Coder.com for PR #4835 deployed! It will be updated on every commit.

Copy link

codecov bot commented Feb 7, 2022
edited
Loading

Codecov Report

Merging #4835 (99db1b7) into main (102478b) will increase coverage by 0.54%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@
## main #4835 +/- ##
==========================================
+ Coverage 69.17% 69.72% +0.54% 
==========================================
 Files 29 29 
 Lines 1645 1645 
 Branches 363 363 
==========================================
+ Hits 1138 1147 +9 
+ Misses 430 424 -6 
+ Partials 77 74 -3 
Impacted Files Coverage Δ
src/node/update.ts 100.00% <0.00%> (+13.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 102478b...99db1b7. Read the comment docs.

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Nicely done! All my comments are questions/optional except for the redirect that seems to increment instead of decrement.

jsjoeio reacted with thumbs up emoji
@jsjoeio jsjoeio temporarily deployed to CI February 8, 2022 18:18 Inactive
@jsjoeio jsjoeio temporarily deployed to CI February 11, 2022 20:21 Inactive
Copy link
Contributor Author

jsjoeio commented Feb 11, 2022

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Beautiful fixup commits, very easy to re-review. <3

jsjoeio reacted with heart emoji
@jsjoeio jsjoeio temporarily deployed to CI February 11, 2022 20:45 Inactive
@jsjoeio jsjoeio temporarily deployed to npm February 11, 2022 20:54 Inactive
@jsjoeio jsjoeio merged commit c9c5c54 into main Feb 14, 2022
@jsjoeio jsjoeio deleted the jsjoeio-update-test branch February 14, 2022 20:53
TinLe pushed a commit to TinLe/code-server that referenced this pull request Apr 23, 2022
* feat: add isAddressInfo helper function
* feat(update): add test for rejection UpdateProvider
* feat: add more tests for UpdateProvider
* fixup! move isAddressInfo, add .address check
* fixup! remove extra writeHead
* fixup! use -1 in redirect logic
* fixup! remove unnecessary String call
* fixup! use /latest for redirect
* fixup! use match group for regex
* fixup!: replace match/split logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@code-asher code-asher code-asher approved these changes

Labels
testing Anything related to testing
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[Testing]: add more coverage for update.ts

AltStyle によって変換されたページ (->オリジナル) /