chore: fix mysql tests

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-07-08 11:27:00 +02:00
parent bb1939b834
commit 04b1769ae9
2 changed files with 5 additions and 5 deletions
@@ -75,8 +75,8 @@ describe('UserInfoDatabase', () => {
expect(savedUserInfo).toEqual({
user_entity_ref: 'user:default/foo',
user_info: JSON.stringify(userInfo),
updated_at: expect.any(String),
created_at: expect.any(String),
updated_at: expect.anything(),
created_at: expect.anything(),
});
userInfo.claims.ent = ['group:default/group1', 'group:default/group2'];
@@ -89,8 +89,8 @@ describe('UserInfoDatabase', () => {
expect(updatedUserInfo).toEqual({
user_entity_ref: 'user:default/foo',
user_info: JSON.stringify(userInfo),
updated_at: expect.any(String),
created_at: expect.any(String),
updated_at: expect.anything(),
created_at: expect.anything(),
});
});
@@ -40,7 +40,7 @@ export class UserInfoDatabase {
.insert({
user_entity_ref: userInfo.claims.sub as string,
user_info: JSON.stringify(userInfo),
updated_at: DateTime.utc().toSQL(),
updated_at: DateTime.utc().toSQL({ includeOffset: false }),
})
.onConflict('user_entity_ref')
.merge();