Skip to content

Commit

Permalink
tests: add test case for improving test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 21, 2023
1 parent 68952d0 commit a1afbc4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Organizations/OrganizationDetails/OrganizationDetails.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ describe('OrganizationDetails', () => {
expect(screen.getByText('OrganizationAccounts')).toBeDefined();
});

it('should display Donor Contacts accordion when both vendor and donor have been checked', () => {
renderOrganizationDetails({
...defaultProps,
organization: {
name: 'Amazon',
isVendor: true,
isDonor: true,
},
});

expect(screen.getByText('ui-organizations.donorContacts')).toBeDefined();
});

it('should display warning message if vendor has not unique account numbers', () => {
renderOrganizationDetails({
...defaultProps,
Expand Down

0 comments on commit a1afbc4

Please sign in to comment.