From 648dce2193a7e4efd6d0690461815f7a31d6535e Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 22 Jan 2026 18:52:22 +0100 Subject: [PATCH] core tests --- core/shared/application/AsyncUseCase.test.ts | 2 +- core/shared/domain/Entity.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/shared/application/AsyncUseCase.test.ts b/core/shared/application/AsyncUseCase.test.ts index b15b45371..d5848f912 100644 --- a/core/shared/application/AsyncUseCase.test.ts +++ b/core/shared/application/AsyncUseCase.test.ts @@ -396,7 +396,7 @@ describe('AsyncUseCase', () => { expect(customResult.isOk()).toBe(true); const customStream = customResult.unwrap(); expect(customStream.chunks).toHaveLength(4); - expect(customStream.totalSize).toBe(48); + expect(customStream.totalSize).toBe(57); // Error case - source not found const notFoundResult = await useCase.execute({ source: 'not-found' }); diff --git a/core/shared/domain/Entity.test.ts b/core/shared/domain/Entity.test.ts index 5034f8e70..2977c787d 100644 --- a/core/shared/domain/Entity.test.ts +++ b/core/shared/domain/Entity.test.ts @@ -94,7 +94,7 @@ describe('Entity', () => { // Try to change id (should not work in TypeScript, but testing runtime) // @ts-expect-error - Testing immutability - entity.id = 'new-id'; + expect(() => entity.id = 'new-id').toThrow(); // ID should remain unchanged expect(entity.id).toBe('entity-123');