Skip to content

Commit 70e8fce

Browse files
committed
test: update UserService username update test to reflect new return structure
1 parent cd62317 commit 70e8fce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/src/user/user.service.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,12 @@ describe('UserService', () => {
339339

340340
const result = await service.updateUsername(user, body);
341341

342-
expect(result).toEqual(user);
342+
expect(result).toEqual({
343+
username: 'newuser',
344+
publicName: undefined,
345+
email: undefined,
346+
});
347+
343348
expect(user.username).toBe(body.username);
344349
expect(service.usernameExists).toHaveBeenCalledWith(body.username);
345350
});

0 commit comments

Comments
 (0)