fix issues in core
This commit is contained in:
@@ -10,7 +10,6 @@ import type { Logger, UseCaseOutputPort } from '@core/shared/application';
|
||||
import { Result } from '@core/shared/application/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { Media } from '../../domain/entities/Media';
|
||||
import { MediaUrl } from '../../domain/value-objects/MediaUrl';
|
||||
|
||||
interface TestOutputPort extends UseCaseOutputPort<GetMediaResult> {
|
||||
present: Mock;
|
||||
@@ -71,7 +70,7 @@ describe('GetMediaUseCase', () => {
|
||||
originalName: 'file.png',
|
||||
mimeType: 'image/png',
|
||||
size: 123,
|
||||
url: MediaUrl.create('https://example.com/file.png'),
|
||||
url: 'https://example.com/file.png',
|
||||
type: 'image',
|
||||
uploadedBy: 'user-1',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user