core tests
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user