From ffdf453fea8c9ea70f1d54954f4fd4d88f2db8e6 Mon Sep 17 00:00:00 2001 From: dswbx Date: Thu, 18 Sep 2025 09:52:05 +0200 Subject: [PATCH] fix: remove non-unique index test The removed test no longer aligns with the current `EntityIndex` implementation, as non-unique validation is not applicable anymore. --- app/__test__/data/specs/fields/FieldIndex.spec.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/__test__/data/specs/fields/FieldIndex.spec.ts b/app/__test__/data/specs/fields/FieldIndex.spec.ts index ab94214..fbcfabf 100644 --- a/app/__test__/data/specs/fields/FieldIndex.spec.ts +++ b/app/__test__/data/specs/fields/FieldIndex.spec.ts @@ -23,11 +23,4 @@ describe("FieldIndex", async () => { expect(index.name).toEqual("idx_test_name"); expect(index.unique).toEqual(false); }); - - test("it fails on non-unique", async () => { - const field = new TestField("name", { required: false }); - - expect(() => new EntityIndex(entity, [field], true)).toThrowError(); - expect(() => new EntityIndex(entity, [field])).toBeDefined(); - }); });