diff --git a/src/modules/health/tests/unit/prisma.health-indicator.usecase.spec.ts b/src/modules/health/tests/unit/prisma.health-indicator.usecase.spec.ts index e62feb3..887f635 100644 --- a/src/modules/health/tests/unit/prisma.health-indicator.usecase.spec.ts +++ b/src/modules/health/tests/unit/prisma.health-indicator.usecase.spec.ts @@ -1,10 +1,10 @@ import { Test, TestingModule } from '@nestjs/testing'; import { PrismaHealthIndicatorUseCase } from '../../domain/usecases/prisma.health-indicator.usecase'; -import { UsersRepository } from '../../../user/adapters/secondaries/users.repository'; -import { PrismaClientKnownRequestError } from '@prisma/client/runtime'; import { HealthCheckError, HealthIndicatorResult } from '@nestjs/terminus'; +import { AdsRepository } from '../../../ad/adapters/secondaries/ads.repository'; +import { PrismaClientKnownRequestError } from '@prisma/client/runtime/library'; -const mockUsersRepository = { +const mockAdsRepository = { healthCheck: jest .fn() .mockImplementationOnce(() => { @@ -25,8 +25,8 @@ describe('PrismaHealthIndicatorUseCase', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: UsersRepository, - useValue: mockUsersRepository, + provide: AdsRepository, + useValue: mockAdsRepository, }, PrismaHealthIndicatorUseCase, ],