-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Improve Vote contract tests #5156
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
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a37e234 to
c8aa874
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5156 +/- ##
=======================================
Coverage 45.36% 45.36%
=======================================
Files 1068 1068
Lines 55230 55230
Branches 3969 3971 +2
=======================================
Hits 25055 25055
Misses 29483 29483
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing validation for the `minVoteQuorumRequiredPercent` parameter in the `deploy-vote.ts` file and updating corresponding tests to ensure correct functionality.
### Detailed summary
- Added validation for `minVoteQuorumRequiredPercent` in `deploy-vote.ts`.
- Included checks for NaN, range (0-100), and integer-like values.
- Updated tests in `deploy-vote.test.ts` to handle new validation logic.
- Adjusted test descriptions and assertions in `vote.test.ts`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
39ea040 to
4b18351
Compare
c8aa874 to
5dc1899
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on adding validation for the
minVoteQuorumRequiredPercentparameter in thedeploy-vote.tsfile and updating related tests to ensure proper error handling and functionality.Detailed summary
minVoteQuorumRequiredPercentindeploy-vote.ts:deploy-vote.test.ts:proposalExists.test.tsand updated assertions.