Skip to content

Commit a492ca8

Browse files
test: adjusted test mock function
1 parent 9ac074c commit a492ca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/meteor/client/sidebar/badges/SidebarItemBadges.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('SidebarItemBadges', () => {
5454
it('should render InvitationBadge when subscription has status INVITED', () => {
5555
render(
5656
<SidebarItemBadges
57-
room={createRoomWithSubscription({
57+
room={createFakeSubscription({
5858
status: 'INVITED',
5959
inviter: { name: 'Rocket Cat', username: 'rocket.cat', _id: 'rocket.cat' },
6060
ts: new Date('2025-01-01T00:00:00.000Z'),
@@ -69,7 +69,7 @@ describe('SidebarItemBadges', () => {
6969
});
7070

7171
it('should not render InvitationBadge when subscription does not have status INVITED', () => {
72-
render(<SidebarItemBadges room={createRoomWithSubscription()} />, { wrapper: appRoot });
72+
render(<SidebarItemBadges room={createFakeSubscription()} />, { wrapper: appRoot });
7373

7474
expect(screen.queryByRole('status', { name: /Invited/ })).not.toBeInTheDocument();
7575
});

0 commit comments

Comments
 (0)