fix(lint): устранить ошибки lint и ожидание host в тесте артефактов логов

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
DenozordecandClaude Sonnet 5.5 committed 2026-11-15 21:20:17 +07:00
1 parent cf6dcd77fb
commit 44b5066f3a
6 files changed
+22 -11

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ export async function verifyMcpLogArtifacts(actor: AuthUser) {
await rest.register((await import("../routes/logs.js")).default, { prefix: "/api" })
try {
const response = await rest.inject({ method: "GET", url: `/api/logs/export?serverId=93&q=${marker}&format=json` })
assert.equal(response.statusCode, 200); assert.deepEqual(JSON.parse(body.toString("utf8")), redact(response.json()))
assert.equal(response.statusCode, 200); assert.deepEqual(JSON.parse(body.toString("utf8")), redact(response.json().map(({ host: _host, ...row }: Record<string, unknown>) => row))) // MCP artifacts never carry router hosts
const csv = await rest.inject({ method: "GET", url: `/api/logs/export?serverId=93&q=${marker}&format=csv` })
assert.equal(csv.statusCode, 200); assert.ok(csv.body.split("\r\n")[0].includes('"host"'))
} finally { await rest.close() }