Buchungskalender: Abschluss – S2 Setup-Test kennt den unique-Index
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
727613d0e2
commit
54310d9bae
1 file changed
+1
-1
@@ -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}`)
|
||||
|
||||
Reference in new issue
Block a user