Skip to content

Commit

Permalink
#2811 fixed flakey test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaryan1203 committed Dec 20, 2024
1 parent 41ef6c8 commit d148c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/tests/unmocked/organization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ describe('Organization Tests', () => {
});

expect(allContacts.length).toBe(2);
expect(allContacts[0].userId).toBe(testBatman.userId);
expect(allContacts[1].userId).toBe(testSuperman.userId);
expect(allContacts.some((contact) => contact.userId === testBatman.userId)).toBeTruthy();
expect(allContacts.some((contact) => contact.userId === testSuperman.userId)).toBeTruthy();

expect(updatedOrganization).not.toBeNull();
expect(updatedOrganization.contacts[0].title).toBe('Chief Software Engineer');
Expand Down

0 comments on commit d148c78

Please sign in to comment.