From 54310d9bae288a793b5f132cc249b0527b622b21 Mon Sep 17 00:00:00 2001 From: Kenso Grimm Date: Wed, 7 Oct 2026 15:21:29 +0000 Subject: [PATCH] =?UTF-8?q?Buchungskalender:=20Abschluss=20=E2=80=93=20S2?= =?UTF-8?q?=20Setup-Test=20kennt=20den=20unique-Index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- test/unterkunftSetup.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unterkunftSetup.test.js b/test/unterkunftSetup.test.js index 5b082b4..18b7620 100644 --- a/test/unterkunftSetup.test.js +++ b/test/unterkunftSetup.test.js @@ -151,7 +151,7 @@ test('Schema: Indizes wie in der Spezifikation und nur auf vorhandenen Attribute for (const name of NAMES) { const keys = new Set() for (const index of UNTERKUNFT_COLLECTIONS[name].indexes) { - assert.equal(index.type, 'key') + assert.equal(index.type, name === 'ukRechnungen' && index.key === 'uniq_feature_nummer' ? 'unique' : 'key') assert.ok(!keys.has(index.key), `${name}: doppelter Index ${index.key}`) keys.add(index.key) assert.ok(index.attributes.every((key) => keysOf(name).includes(key)), `${name}.${index.key}`)