Analyse: Einwilligungs-Historie, Nachweis beim Einschalten, Sperre ohne Verantwortlichen-Angaben, Textform für Mitarbeiter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c6824f83a6
commit
3d05472b25
14 files changed
+585
-115
No files matched your search
@@ -403,6 +403,13 @@ test('Analyse: Standardfarbe, Firma fällt auf Name zurück, Adresse optional',
|
||||
assert.equal(body.analytics.privacy.address, '')
|
||||
})
|
||||
|
||||
test('Analyse: ungültige E-Mail ⇒ null, nur Name reicht als Firma', async (t) => {
|
||||
t.mock.method(console, 'warn', () => {})
|
||||
assert.equal((await submitFor(await analyseProject({ customer: { email: 'abc' } }))).analytics, null)
|
||||
const body = await submitFor(await analyseProject({ customer: { companyName: '', name: 'Nur Name' } }))
|
||||
assert.equal(body.analytics.privacy.company, 'Nur Name')
|
||||
})
|
||||
|
||||
test('Analyse: aus ⇒ null', async () => {
|
||||
assert.equal((await submitFor(await analyseProject({ feature: { state: 'off', enabled: false } }))).analytics, null)
|
||||
assert.equal((await submitFor(await analyseProject({ noFeature: true }))).analytics, null)
|
||||
|
||||
Reference in new issue
Block a user