From 1cbef2218a81e298d1fd5d466f887f176e7b2c90 Mon Sep 17 00:00:00 2001 From: David Leek Date: Mon, 11 Dec 2023 09:17:52 +0100 Subject: [PATCH] chore: fix PII test for ProjectAccessAddedEvent --- src/lib/routes/admin-api/events.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/routes/admin-api/events.test.ts b/src/lib/routes/admin-api/events.test.ts index b8415edb75..f5196ad446 100644 --- a/src/lib/routes/admin-api/events.test.ts +++ b/src/lib/routes/admin-api/events.test.ts @@ -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, ); });