mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 07:02:16 +03:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user