diff --git a/src/domain/notifications/v2/test.notification.repository.interface.ts b/src/domain/notifications/v2/entities/__tests__/notification.repository.mock.ts similarity index 100% rename from src/domain/notifications/v2/test.notification.repository.interface.ts rename to src/domain/notifications/v2/entities/__tests__/notification.repository.mock.ts diff --git a/src/domain/notifications/v2/notifications.repository.spec.ts b/src/domain/notifications/v2/notifications.repository.spec.ts index 45c4f314e2..760848316b 100644 --- a/src/domain/notifications/v2/notifications.repository.spec.ts +++ b/src/domain/notifications/v2/notifications.repository.spec.ts @@ -295,14 +295,14 @@ describe('NotificationsRepositoryV2', () => { }); describe('getSubscribersBySafe()', () => { - it('Should succesfully return subscribers by safe', async () => { - const mockSbuscribers = Array.from( + it('Should successfully return subscribers by safe', async () => { + const mockSubscribers = Array.from( { length: 5 }, (): NotificationSubscription => notificationSubscriptionBuilder().build(), ); notificationSubscriptionsRepository.find.mockResolvedValue( - mockSbuscribers, + mockSubscribers, ); mockPostgresDatabaseService.getRepository.mockResolvedValue( notificationSubscriptionsRepository, @@ -313,7 +313,7 @@ describe('NotificationsRepositoryV2', () => { safeAddress: faker.string.hexadecimal({ length: 32 }) as `0x${string}`, }); - const output = mockSbuscribers.map( + const output = mockSubscribers.map( (subscription: NotificationSubscription) => { return { subscriber: subscription.signer_address, diff --git a/src/domain/notifications/v2/notifications.repository.ts b/src/domain/notifications/v2/notifications.repository.ts index 3468c6327a..ed15b65fdf 100644 --- a/src/domain/notifications/v2/notifications.repository.ts +++ b/src/domain/notifications/v2/notifications.repository.ts @@ -53,7 +53,6 @@ export class NotificationsRepositoryV2 implements INotificationsRepositoryV2 { private readonly pushNotificationsApi: IPushNotificationsApi, @Inject(LoggingService) private readonly loggingService: ILoggingService, - @Inject(PostgresDatabaseService) private readonly postgresDatabaseService: PostgresDatabaseService, ) {} diff --git a/src/domain/notifications/v2/test.notification.repository.module.ts b/src/domain/notifications/v2/test.notification.repository.module.ts index 27ac12ead1..3003eb73e2 100644 --- a/src/domain/notifications/v2/test.notification.repository.module.ts +++ b/src/domain/notifications/v2/test.notification.repository.module.ts @@ -1,6 +1,6 @@ import { Module } from '@nestjs/common'; import { INotificationsRepositoryV2 } from '@/domain/notifications/v2/notifications.repository.interface'; -import { MockNotificationRepositoryV2 } from '@/domain/notifications/v2/test.notification.repository.interface'; +import { MockNotificationRepositoryV2 } from '@/domain/notifications/v2/entities/__tests__/notification.repository.mock'; @Module({ providers: [