code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 1m29s
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:
2026-01-26 01:54:57 +01:00
parent 49cc91e046
commit bf2c0fdb0c
18 changed files with 8 additions and 49 deletions

View File

@@ -24,7 +24,7 @@ describe('MediaResolverPort - Comprehensive Tests', () => {
it('should define resolve method signature correctly', () => {
// Verify the interface has the correct method signature
const testInterface: MediaResolverPort = {
resolve: async (ref: MediaReference): Promise<string | null> => {
resolve: async (): Promise<string | null> => {
return null;
},
};
@@ -124,7 +124,6 @@ describe('MediaResolverPort - Comprehensive Tests', () => {
it('should return null for generated reference without generationRequestId', () => {
// Create a reference with missing generationRequestId
const ref = MediaReference.createGenerated('valid-id');
// Manually create an invalid reference
const invalidRef = { type: 'generated' } as MediaReference;
const result = ResolutionStrategies.generated(invalidRef);
@@ -164,7 +163,6 @@ describe('MediaResolverPort - Comprehensive Tests', () => {
it('should return null for uploaded reference without mediaId', () => {
// Create a reference with missing mediaId
const ref = MediaReference.createUploaded('valid-id');
// Manually create an invalid reference
const invalidRef = { type: 'uploaded' } as MediaReference;
const result = ResolutionStrategies.uploaded(invalidRef);
@@ -284,7 +282,7 @@ describe('MediaResolverPort - Comprehensive Tests', () => {
describe('isMediaResolverPort Type Guard', () => {
it('should return true for valid MediaResolverPort implementation', () => {
const validResolver: MediaResolverPort = {
resolve: async (ref: MediaReference): Promise<string | null> => {
resolve: async (): Promise<string | null> => {
return '/test/path';
},
};
@@ -332,7 +330,7 @@ describe('MediaResolverPort - Comprehensive Tests', () => {
it('should return true for object with resolve method and other properties', () => {
const validResolver = {
resolve: async (ref: MediaReference): Promise<string | null> => {
resolve: async (): Promise<string | null> => {
return '/test/path';
},
extraProperty: 'value',