-
Notifications
You must be signed in to change notification settings - Fork 98
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
refactor li proposal test #2074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately there is a lot of duplicated code between PageProposal
and LiProposal
we should kill the duplication and put it in some helper, tested separately, and I guess the tests of this component will all die, along with some tests from PageProposal
Codecov Report
@@ Coverage Diff @@
## develop #2074 +/- ##
=======================================
Coverage 95.4% 95.4%
=======================================
Files 110 110
Lines 2570 2570
Branches 103 103
=======================================
Hits 2452 2452
Misses 109 109
Partials 9 9
|
Codecov Report
@@ Coverage Diff @@
## develop #2074 +/- ##
========================================
Coverage 95.31% 95.31%
========================================
Files 110 110
Lines 2581 2581
Branches 104 104
========================================
Hits 2460 2460
Misses 112 112
Partials 9 9
|
Maybe we can fix the duplicated code separately, so we can clean up the PR queue :)
CHANGELOG.md
Outdated
@@ -47,6 +51,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |||
|
|||
### Fixed | |||
|
|||
- Refactored tests: PageStaking, PanelSort, TabStakingParameters @faboweb | |||
|
|||
## Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dup fixed entry
@@ -31,16 +31,16 @@ | |||
</td> | |||
<td>{{ `#` + proposal.proposal_id }}</td> | |||
<td class="li-proposal__value yes"> | |||
{{ tally.yes }} | |||
{{ tally.yes || `--` }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
side note: we should maybe prettify the tally result numbers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean by prettify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a function called pretty
which shortens the value after 4 decimals
For contributor:
CHANGELOG.md
with issue # and GitHub usernameFiles changed
in the github PR explorerFor reviewer: