diff --git a/src/modules/authentication/tests/integration/authentication.repository.spec.ts b/src/modules/authentication/tests/integration/authentication.repository.spec.ts index 3a4ded9..ffd78ce 100644 --- a/src/modules/authentication/tests/integration/authentication.repository.spec.ts +++ b/src/modules/authentication/tests/integration/authentication.repository.spec.ts @@ -11,7 +11,7 @@ describe('AuthenticationRepository', () => { let prismaService: PrismaService; let authenticationRepository: AuthenticationRepository; - const createAuths = async (nbToCreate = 10) => { + const createAuthentications = async (nbToCreate = 10) => { for (let i = 0; i < nbToCreate; i++) { await prismaService.auth.create({ data: { @@ -52,14 +52,14 @@ describe('AuthenticationRepository', () => { }); it('should return a data array with 8 auths', async () => { - await createAuths(8); + await createAuthentications(8); const auths = await authenticationRepository.findAll(); expect(auths.data.length).toBe(8); expect(auths.total).toBe(8); }); it('should return a data array limited to 10 authentications', async () => { - await createAuths(20); + await createAuthentications(20); const auths = await authenticationRepository.findAll(); expect(auths.data.length).toBe(10); expect(auths.total).toBe(20);