Analyse: Services-Route faellt bei Fehler der Analyse-Abfrage nicht aus

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-01 10:39:56 +00:00
1 parent 0b59dac2be
commit 2ca18f9c65
2 files changed
+25 -5

No files matched your search

+14
View File
@@ -80,3 +80,17 @@ test('Analyse: features.analyse je Projekt, Katalogstatus folgt ANALYSE_ENABLED'
const { FEATURES } = await import('../server/services/projectKinds.js')
assert.equal(FEATURES.analyse.status, 'in_development')
})
test('Analyse-Abfrage scheitert => 200, features.analyse null', async () => {
aw.failNext({ method: 'GET', pathIncludes: '/portalFeatures/', status: 500 })
const warn = console.warn
console.warn = () => {}
try {
const r = await get('jwt-admin')
assert.equal(r.status, 200)
const body = await r.json()
assert.equal(body.groups.website[0].features.analyse, null)
} finally {
console.warn = warn
}
})