Skip to content

Commit

Permalink
Adjust unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Oct 4, 2024
1 parent 5df2010 commit 9f3abb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const totalQuota = 1000
const basicQuota = 300
const basicRemainingQuota = 700
const warningQuota = 810
const warningRemainingQuota = 190
const dangerQuota = 910
const dangerRemainingQuota = 90

Expand Down Expand Up @@ -66,7 +67,7 @@ describe('User Menu component', () => {
const wrapper = getMountedWrapper(
{
used: warningQuota,
remaining: basicRemainingQuota,
remaining: warningRemainingQuota,
total: totalQuota
},
email
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ exports[`User Menu component > when quota is above 80% and below 90% > renders a
<oc-icon-stub name="hard-drive-2" size="small" fill-type="line" class="oc-mr-xs"></oc-icon-stub>
<div>
<p class="oc-my-rm"><span class="quota-information-text">810 B of 1 kB used</span></p>
<p class="oc-my-rm"><span class="quota-information-details-text oc-text-xsmall oc-text-muted">81% used, 700 B remaining</span></p>
<p class="oc-my-rm"><span class="quota-information-details-text oc-text-xsmall oc-text-muted">81% used, 190 B remaining</span></p>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="warning" value="81"></oc-progress-stub>
</div>
</div></span>
Expand Down

0 comments on commit 9f3abb2

Please sign in to comment.