test(user): expect sorted connections in authorizedConnections
This commit is contained in:
@@ -376,7 +376,10 @@ describe('User model', () => {
|
|||||||
const anotherUserConnection = await createConnection();
|
const anotherUserConnection = await createConnection();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await userWithRoleAndPermissions.authorizedConnections
|
await userWithRoleAndPermissions.authorizedConnections.orderBy(
|
||||||
|
'created_at',
|
||||||
|
'asc'
|
||||||
|
)
|
||||||
).toStrictEqual([userConnection, anotherUserConnection]);
|
).toStrictEqual([userConnection, anotherUserConnection]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user