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

fix: InlineBalanceValue unit test break #919

Merged
merged 2 commits into from
Mar 7, 2024
Merged

fix: InlineBalanceValue unit test break #919

merged 2 commits into from
Mar 7, 2024

Conversation

svienot
Copy link
Collaborator

@svienot svienot commented Mar 7, 2024

Description:

Fix test breaking when balance was exactly 2 year old, which should not happen outside of the context of the test...
InlineBalanceValue now processes years separately from days.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

ericleponner and others added 2 commits March 7, 2024 14:57
Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
@svienot svienot self-assigned this Mar 7, 2024
Copy link

github-actions bot commented Mar 7, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 83.13% 35269 / 42422
🔵 Statements 83.13% 35269 / 42422
🔵 Functions 64.04% 832 / 1299
🔵 Branches 84.17% 3899 / 4632
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/values/InlineBalancesValue.vue 94.93% 88.46% 100% 94.93% 103-110
src/utils/analyzer/BalanceAnalyzer.ts 96.42% 92.85% 100% 96.42% 55-57, 90
Generated in workflow #753

Copy link

sonarcloud bot commented Mar 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
54.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@svienot svienot merged commit ea9c33d into main Mar 7, 2024
6 of 7 checks passed
@svienot svienot deleted the balance_test_break branch March 7, 2024 16:57
svienot added a commit that referenced this pull request Mar 8, 2024
Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Co-authored-by: Eric Le Ponner <eric.leponner@icloud.com>
(cherry picked from commit ea9c33d)
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