This commit is contained in:
2026-10-19 00:57:56 +07:00
parent 5635b8b5b1
commit 7fa0004ab9
7 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ test('журнал сохраняет только разрешённые пол
})
log.record('request-error', { path: '/api/games/7?token=SECRET', reason: 'ENOTFOUND' })
log.record('request-error', { path: '/api/games/{id}', reason: 'SECRET' })
log.record('request-error', { path: '/api/scenarios/{id}', reason: 'AUTH', token: 'SECRET' })
log.record('request-error', { path: '/api/scenarios/{id}/full', reason: 'AUTH', token: 'SECRET' })
const content = await readFile(join(dir, 'diagnostic.jsonl'), 'utf8')
assert.equal(content.includes('SECRET'), false)
const lines = content