refactor sonarqube findings
Sonarqube Scanner / Prepare environment (push) Successful in 9s
Sonarqube Scanner / Build and test (push) Successful in 25s
Sonarqube Scanner / SonarQube analysis (push) Successful in 58s
Sonarqube Scanner / Deploy to Server (push) Successful in 6s

This commit is contained in:
Florian Zumpe
2026-10-03 16:55:09 +02:00
parent 0db91660b3
commit 535148639f
3 changed files with 72 additions and 56 deletions
+1 -1
View File
@@ -725,7 +725,7 @@ test('256-bit creator identity survives reload, route deletion and requires expl
test('creator identity never falls back to insecure randomness or replaces corrupt stored identity', async () => {
const { api, localStorage } = await loadLocalRoutes({ crypto: {} });
assert.throws(() => api.creatorId(), /Gerätekennung/);
assert.throws(() => api.creatorId(), error => error.name === 'TypeError' && /Gerätekennung/.test(error.message));
localStorage.setItem('wegwichtel.creator-id.v1', 'broken');
assert.throws(() => api.creatorId(), /Gerätekennung/);
assert.equal(localStorage.getItem('wegwichtel.creator-id.v1'), 'broken');