Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migration for features created by #5588

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix PII test for ProjectAccessAddedEvent
daveleek committed Dec 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1cbef2218a81e298d1fd5d466f887f176e7b2c90
4 changes: 2 additions & 2 deletions src/lib/routes/admin-api/events.test.ts
Original file line number Diff line number Diff line change
@@ -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,
);
});