Analyse: Setup-Test um activatedMailAt ergaenzt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
37203f00c4
commit
813c56e6a4
1 file changed
+5
-4
@@ -17,7 +17,7 @@ function mockClient(existing = []) {
|
||||
}
|
||||
}
|
||||
|
||||
test('Schema: 7 Attribute mit Groessen, alle optional', () => {
|
||||
test('Schema: 8 Attribute mit Groessen, alle optional', () => {
|
||||
const sizes = Object.fromEntries(ANALYSE_ATTRIBUTES.map((a) => [a.key, a.size]))
|
||||
assert.deepEqual(sizes, {
|
||||
accentColor: 7,
|
||||
@@ -27,6 +27,7 @@ test('Schema: 7 Attribute mit Groessen, alle optional', () => {
|
||||
activatedAt: 40,
|
||||
offSince: 40,
|
||||
privacyTicketId: 40,
|
||||
activatedMailAt: 40,
|
||||
})
|
||||
assert.ok(ANALYSE_ATTRIBUTES.every((a) => a.required === false && a.type === 'string'))
|
||||
})
|
||||
@@ -34,16 +35,16 @@ test('Schema: 7 Attribute mit Groessen, alle optional', () => {
|
||||
test('main legt nur fehlende Attribute an', async () => {
|
||||
const client = mockClient(['accentColor'])
|
||||
const result = await main({ client, log: () => {} })
|
||||
assert.equal(client.created.length, 6)
|
||||
assert.equal(client.created.length, 7)
|
||||
assert.ok(!client.created.includes('accentColor'))
|
||||
assert.equal(result.missing.length, 6)
|
||||
assert.equal(result.missing.length, 7)
|
||||
})
|
||||
|
||||
test('main --check legt nichts an', async () => {
|
||||
const client = mockClient(['accentColor'])
|
||||
const result = await main({ check: true, client, log: () => {} })
|
||||
assert.equal(client.created.length, 0)
|
||||
assert.equal(result.missing.length, 6)
|
||||
assert.equal(result.missing.length, 7)
|
||||
})
|
||||
|
||||
test('Konfiguration: analyse ist standardmaessig aus', () => {
|
||||
|
||||
Reference in new issue
Block a user