test(user): expect sorted connections in authorizedConnections

This commit is contained in:
Ali BARIN
2024-12-12 12:36:23 +00:00
parent 83d16e72e1
commit 5d5aebdb41

View File

@@ -376,7 +376,10 @@ describe('User model', () => {
const anotherUserConnection = await createConnection();
expect(
await userWithRoleAndPermissions.authorizedConnections
await userWithRoleAndPermissions.authorizedConnections.orderBy(
'created_at',
'asc'
)
).toStrictEqual([userConnection, anotherUserConnection]);
});