Skip to content

Commit

Permalink
fix: replace pending with assigned in budget cards (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Dec 11, 2023
1 parent 6d8ca37 commit 9d98bdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/learner-credit-management/SubBudgetCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const SubBudgetCard = ({
</Col>
{isAssignable && (
<Col xs="6" md="auto" className="mb-3 mb-md-0">
<div className="small font-weight-bold">Pending</div>
<div className="small font-weight-bold">Assigned</div>
<span className="small">
{isFetchingBudgets ? <Skeleton /> : formatPrice(pending)}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,10 @@ describe('<BudgetCard />', () => {
expect(screen.getByText('Available')).toBeInTheDocument();
expect(screen.getByText(formatPrice(mockBudgetAggregates.available))).toBeInTheDocument();
if (isAssignableBudget) {
expect(screen.getByText('Pending')).toBeInTheDocument();
expect(screen.getByText('Assigned')).toBeInTheDocument();
expect(screen.getByText(formatPrice(mockBudgetAggregates.pending))).toBeInTheDocument();
} else {
expect(screen.queryByText('Pending')).not.toBeInTheDocument();
expect(screen.queryByText('Assigned')).not.toBeInTheDocument();
}
expect(screen.getByText('Spent')).toBeInTheDocument();
expect(screen.getByText(formatPrice(mockBudgetAggregates.spent))).toBeInTheDocument();
Expand Down

0 comments on commit 9d98bdd

Please sign in to comment.