mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2026-01-11 22:02:39 +00:00
fix env
This commit is contained in:
@@ -46,10 +46,18 @@ describe('UsersRepository', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should return an data array with users', async () => {
|
||||
await createUsers(10);
|
||||
it('should return a data array with 8 users', async () => {
|
||||
await createUsers(8);
|
||||
const users = await usersRepository.findAll();
|
||||
expect(users.data.length).toBe(8);
|
||||
expect(users.total).toBe(8);
|
||||
});
|
||||
|
||||
it('should return a data array limited to 10 users', async () => {
|
||||
await createUsers(20);
|
||||
const users = await usersRepository.findAll();
|
||||
expect(users.data.length).toBe(10);
|
||||
expect(users.total).toBe(20);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user