Skip to content

Commit

Permalink
Merge pull request #14827 from transcom/MAIN-B-21985
Browse files Browse the repository at this point in the history
Main B-21985 counseling fee final payment review
  • Loading branch information
brianmanley-caci authored Feb 19, 2025
2 parents c3e1457 + 7872034 commit 9da2b53
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 9da2b53

Please sign in to comment.