Analyse: Runner-Auftrag begrenzt Datenschutz-Angaben
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
62f196f705
commit
696f17b470
2 files changed
+25
-6
No files matched your search
@@ -441,3 +441,19 @@ test('Analyse: Dev-PUT nach erfolgreichem Build (Modus dev) enthält kein analyt
|
||||
assert.ok(puts.length >= 1)
|
||||
for (const c of puts) assert.equal('analytics' in c.body, false)
|
||||
})
|
||||
|
||||
test('Analyse: überlange Angaben, Steuerzeichen, schlechte Farbe ⇒ Grenzen eingehalten, Auftrag geht raus', async (t) => {
|
||||
t.mock.method(console, 'warn', () => {})
|
||||
const p = await analyseProject({
|
||||
feature: { accentColor: 'rot' },
|
||||
customer: { companyName: 'F\u0007irma ' + 'x'.repeat(250), street: 's'.repeat(400) },
|
||||
})
|
||||
const a = (await submitFor(p)).analytics
|
||||
assert.equal(a.color, '#111111')
|
||||
assert.ok(a.privacy.company.length <= 200 && !/[\x00-\x1f]/.test(a.privacy.company))
|
||||
assert.ok(a.privacy.address.length <= 300)
|
||||
const q = await analyseProject({ customer: { email: 'a'.repeat(250) + '@x.de' } })
|
||||
assert.equal((await submitFor(q)).analytics, null)
|
||||
const r = await analyseProject({ customer: { email: 'keine-mail' } })
|
||||
assert.equal((await submitFor(r)).analytics, null)
|
||||
})
|
||||
Reference in new issue
Block a user