1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00

chore: fix PII test for ProjectAccessAddedEvent

This commit is contained in:
David Leek 2023-12-11 09:17:52 +01:00
parent e67c20d8bb
commit 1cbef2218a
No known key found for this signature in database
GPG Key ID: 515EE0F1BB6D0BE1

View File

@ -120,7 +120,7 @@ test('should anonymise any PII fields, no matter the depth', async () => {
{
roleId: 1,
groupIds: [1, 2],
users: [1],
users: [{ id: 1, username: testUsername }],
},
],
},
@ -133,7 +133,7 @@ test('should anonymise any PII fields, no matter the depth', async () => {
.expect(200);
expect(body.events.length).toBe(1);
expect(body.events[0].data.groups[0].users[0].username).not.toBe(
expect(body.events[0].data.roles[0].users[0].username).not.toBe(
testUsername,
);
});