Skip to content

Commit

Permalink
Merge branch 'main' into MAIN-B-22272-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljordan-caci authored Feb 19, 2025
2 parents c15ae2d + 9da2b53 commit f7b6578
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,42 @@ describe('components/Office/ReviewServiceItems/ReviewAccountingCodes', () => {

expect(screen.queryByText('HHG')).not.toBeInTheDocument();
});

it('should not display move management fee if move management service item is not requested', () => {
render(
<ReviewAccountingCodes
cards={[
{
amount: 20.65,
status: PAYMENT_SERVICE_ITEM_STATUS.APPROVED,
mtoServiceItemName: 'Counseling',
},
]}
/>,
);

expect(screen.queryByText('Move management fee')).not.toBeInTheDocument();
expect(screen.getByText('Counseling fee')).toBeInTheDocument();
expect(screen.getByText('$20.65')).toBeInTheDocument();
});

it('should not display counseling fee if counseling service item is not requested', () => {
render(
<ReviewAccountingCodes
cards={[
{
amount: 44.33,
status: PAYMENT_SERVICE_ITEM_STATUS.APPROVED,
mtoServiceItemName: 'Move management',
},
]}
/>,
);

expect(screen.queryByText('Counseling fee')).not.toBeInTheDocument();
expect(screen.getByText('Move management fee')).toBeInTheDocument();
expect(screen.getByText('$44.33')).toBeInTheDocument();
});
});

describe('can display codes', () => {
Expand Down

0 comments on commit f7b6578

Please sign in to comment.