mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02:00
fix: fix failing group service test (#4642)
This commit is contained in:
parent
c59b83b07b
commit
bc0c6fcb62
@ -106,19 +106,25 @@ test('adding a root role to a group with a project role should not fail', async
|
|||||||
|
|
||||||
await stores.accessStore.addGroupToRole(group.id, 1, 'test', 'default');
|
await stores.accessStore.addGroupToRole(group.id, 1, 'test', 'default');
|
||||||
|
|
||||||
await expect(() => {
|
const updatedGroup = await groupService.updateGroup(
|
||||||
return groupService.updateGroup(
|
{
|
||||||
{
|
id: group.id!,
|
||||||
id: group.id,
|
name: group.name,
|
||||||
name: group.name,
|
users: [],
|
||||||
users: [],
|
rootRole: 1,
|
||||||
rootRole: 1,
|
createdAt: new Date(),
|
||||||
createdAt: new Date(),
|
createdBy: 'test',
|
||||||
createdBy: 'test',
|
},
|
||||||
},
|
'test',
|
||||||
'test',
|
);
|
||||||
);
|
|
||||||
}).not.toThrow();
|
expect(updatedGroup).toMatchObject({
|
||||||
|
description: group.description,
|
||||||
|
id: group.id,
|
||||||
|
mappingsSSO: [],
|
||||||
|
name: group.name,
|
||||||
|
rootRole: 1,
|
||||||
|
});
|
||||||
|
|
||||||
expect.assertions(1);
|
expect.assertions(1);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user