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: add additional test for handlePassswordValidation #5243

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Jun 6, 2022

This adds an additional test for handlePassowrdValidation to ensure the correct behavior happens when passing in an invalid passwordMethod. Although it shouldn't happen, the new test ensurs that default case in the switch statement has coverage.

Related to #5153

@jsjoeio jsjoeio requested a review from a team June 6, 2022 17:30
@jsjoeio jsjoeio self-assigned this Jun 6, 2022
@github-actions
Copy link

github-actions bot commented Jun 6, 2022

✨ code-server docs for PR #5243 is ready! It will be updated on every commit.

@jsjoeio jsjoeio added this to the June 2022 milestone Jun 6, 2022
@jsjoeio jsjoeio force-pushed the jsjoeio/add-password-test branch from 17baffa to 0ee06eb Compare June 6, 2022 17:35
@codecov
Copy link

codecov bot commented Jun 6, 2022

Codecov Report

Merging #5243 (0ee06eb) into main (792e954) will increase coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5243       /-   ##
==========================================
  Coverage   71.73%   71.85%    0.12%     
==========================================
  Files          30       30              
  Lines        1663     1663              
  Branches      367      367              
==========================================
  Hits         1193     1195        2     
  Misses        403      401       -2     
  Partials       67       67              
Impacted Files Coverage Δ
src/node/util.ts 86.47% <0.00%> ( 1.17%) ⬆️

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 792e954...0ee06eb. Read the comment docs.

@jsjoeio jsjoeio temporarily deployed to npm June 6, 2022 17:40 Inactive
@github-actions
Copy link

github-actions bot commented Jun 6, 2022

✨ code-server dev build published to npm for PR #5243!

  • Last publish status: success
  • Commit: 17baffa

To install in a local project, run:

npm install @coder/code-server-pr@5243

To install globally, run:

npm install -g @coder/code-server-pr@5243

Copy link
Contributor

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Code LGTM

@jsjoeio jsjoeio merged commit d75883b into main Jun 6, 2022
@jsjoeio jsjoeio deleted the jsjoeio/add-password-test branch June 6, 2022 18:20
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