test(users): update unit tests for GDPR consent and export functionality
This commit is contained in:
parent
ea6684b7fa
commit
818a92f18c
@ -219,7 +219,10 @@ describe('UsersService', () => {
|
||||
const result = await service.updateGdprConsent(id);
|
||||
|
||||
expect(service.update).toHaveBeenCalledWith(id, { gdprTimestamp: expect.any(Date) });
|
||||
expect(result).toEqual(mockUser);
|
||||
expect(result).toEqual({
|
||||
...mockUser,
|
||||
gdprConsentDate: mockUser.gdprTimestamp
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -244,6 +247,8 @@ describe('UsersService', () => {
|
||||
expect(result).toEqual({
|
||||
user: mockUser,
|
||||
projects: [mockProject],
|
||||
groups: [],
|
||||
persons: []
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user