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');