mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2026-02-01 22:40:45 +00:00
fix env
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# SERVICE
|
# SERVICE
|
||||||
SERVICE_URL=0.0.0.0
|
SERVICE_URL=0.0.0.0
|
||||||
|
SERVICE_PORT=5001
|
||||||
|
|
||||||
# PRISMA
|
# PRISMA
|
||||||
DATABASE_URL="postgresql://user:user@v3-user-db:5432/user?schema=public"
|
DATABASE_URL="postgresql://user:user@v3-user-db:5432/user?schema=public"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# SERVICE
|
# SERVICE
|
||||||
SERVICE_URL=0.0.0.0
|
SERVICE_URL=0.0.0.0
|
||||||
|
SERVICE_PORT=5001
|
||||||
|
|
||||||
# PRISMA
|
# PRISMA
|
||||||
DATABASE_URL="postgresql://user:user@localhost:5601/user?schema=public"
|
DATABASE_URL="postgresql://user:user@localhost:5601/user?schema=public"
|
||||||
|
|||||||
@@ -46,10 +46,18 @@ describe('UsersRepository', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return an data array with users', async () => {
|
it('should return a data array with 8 users', async () => {
|
||||||
await createUsers(10);
|
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();
|
const users = await usersRepository.findAll();
|
||||||
expect(users.data.length).toBe(10);
|
expect(users.data.length).toBe(10);
|
||||||
|
expect(users.total).toBe(20);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user