code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { SaveRatingUseCase } from './SaveRatingUseCase';
|
||||
import { RatingRepository } from '../../ports/RatingRepository';
|
||||
|
||||
const mockRatingRepository = {
|
||||
save: vi.fn(),
|
||||
@@ -15,7 +16,7 @@ describe('SaveRatingUseCase', () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
useCase = new SaveRatingUseCase({
|
||||
ratingRepository: mockRatingRepository as any,
|
||||
ratingRepository: mockRatingRepository as unknown as RatingRepository,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user