chore(test): type security test bodies, drop unused eslint-disable

Keeps the new security regression tests within the tests/ no-explicit-any budget and removes an unused eslint-disable directive flagged by the linter.
This commit is contained in:
Xiangzhe
2026-08-21 13:28:11 -03:00
parent be1a3ea778
commit 0ccf434f0c
2 changed files with 2 additions and 3 deletions

View File

@@ -124,8 +124,8 @@ test("POST /api/acp/agents rejects an interpreter eval payload (GHSA-jphr-2gw7-x
token
)
);
const body = (await response.json()) as any;
const body = (await response.json()) as { error?: string };
assert.equal(response.status, 400);
assert.match(body.error, /Invalid versionCommand/i);
assert.match(body.error ?? "", /Invalid versionCommand/i);
});

View File

@@ -1,6 +1,5 @@
import { test } from "node:test";
import assert from "node:assert/strict";
// eslint-disable-next-line @typescript-eslint/no-require-imports
import { createRequire } from "node:module";
import { config } from "../../../src/proxy.ts";