fix issues in core
This commit is contained in:
@@ -2,7 +2,6 @@ import { describe, it, expect, vi, type Mock } from 'vitest';
|
||||
import { GetEntityAnalyticsQuery, type GetEntityAnalyticsInput } from './GetEntityAnalyticsQuery';
|
||||
import type { IPageViewRepository } from '../repositories/IPageViewRepository';
|
||||
import type { IEngagementRepository } from '@core/analytics/domain/repositories/IEngagementRepository';
|
||||
import type { IAnalyticsSnapshotRepository } from '@core/analytics/domain/repositories/IAnalyticsSnapshotRepository';
|
||||
import type { Logger } from '@core/shared/application';
|
||||
import type { EntityType } from '../../domain/types/PageView';
|
||||
|
||||
@@ -14,7 +13,6 @@ describe('GetEntityAnalyticsQuery', () => {
|
||||
let engagementRepository: {
|
||||
getSponsorClicksForEntity: Mock;
|
||||
};
|
||||
let snapshotRepository: IAnalyticsSnapshotRepository;
|
||||
let logger: Logger;
|
||||
let useCase: GetEntityAnalyticsQuery;
|
||||
|
||||
@@ -28,8 +26,6 @@ describe('GetEntityAnalyticsQuery', () => {
|
||||
getSponsorClicksForEntity: vi.fn(),
|
||||
} as unknown as IEngagementRepository as any;
|
||||
|
||||
snapshotRepository = {} as IAnalyticsSnapshotRepository;
|
||||
|
||||
logger = {
|
||||
debug: vi.fn(),
|
||||
info: vi.fn(),
|
||||
@@ -40,7 +36,6 @@ describe('GetEntityAnalyticsQuery', () => {
|
||||
useCase = new GetEntityAnalyticsQuery(
|
||||
pageViewRepository as unknown as IPageViewRepository,
|
||||
engagementRepository as unknown as IEngagementRepository,
|
||||
snapshotRepository,
|
||||
logger,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user