Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Oct 22, 2024
1 parent e033a17 commit 1cd0284
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/editor-ui/src/stores/users.store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,16 @@ describe('users.store', () => {

inviteUsers.mockResolvedValueOnce([
{
user: { id: 'random-id', email: '[email protected]', emailSent: true },
user: { id: 'random-id', email: '[email protected]', emailSent: true, role: 'global:member' },
},
]);

await usersStore.inviteUsers([{ email: '[email protected]', role: 'global:admin' }]);
await usersStore.inviteUsers([{ email: '[email protected]', role: 'global:member' }]);

expect(usersStore.allUsers[0]).toMatchObject(
expect.objectContaining({
id: 'random-id',
email: '[email protected]',
role: 'global:member',
isPending: true,
isDefaultUser: false,
Expand Down

0 comments on commit 1cd0284

Please sign in to comment.