Skip to content

Commit

Permalink
Adds test coverage for Dont Change update type.
Browse files Browse the repository at this point in the history
  • Loading branch information
wjames111 committed Sep 5, 2024
1 parent a97b7e3 commit db886ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/Tool/FixCommitmentInfo/Contact.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ describe('FixCommitmentContact', () => {

const { getByTestId } = render(<TestComponent />);
userEvent.click(getByTestId('confirmButton'));

await waitFor(() => {
expect(getByTestId('statusSelectError')).toHaveTextContent(
'Please select a status',
Expand Down
4 changes: 1 addition & 3 deletions src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,7 @@ const FixCommitmentInfo: React.FC<Props> = ({
key={contact.id}
donations={contact.donations?.nodes}
statusTitle={
contact.status
? contactPartnershipStatus[contact.status]
: ''
contactPartnershipStatus[contact.status] || ''
}
statusValue={
getLocalizedContactStatus(t, contact.status) || ''
Expand Down

0 comments on commit db886ae

Please sign in to comment.