Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(i18n): reformat coverage test assertions

Steven Enamakel594080b4334f
diff --git a/scripts/__tests__/i18n-coverage.test.mjs b/scripts/__tests__/i18n-coverage.test.mjs
index d68c3afbdb..5f994dcfda 100644
--- a/scripts/__tests__/i18n-coverage.test.mjs
+++ b/scripts/__tests__/i18n-coverage.test.mjs
@@ -1,5 +1,11 @@
import assert from "node:assert/strict";
-import { closeSync, mkdtempSync, openSync, readFileSync, rmSync } from "node:fs";
+import {
+ closeSync,
+ mkdtempSync,
+ openSync,
+ readFileSync,
+ rmSync,
+} from "node:fs";
import { spawnSync } from "node:child_process";
import { tmpdir } from "node:os";
import { join } from "node:path";
@@ -14,7 +20,11 @@ test("core chat failure keys are used even though the UI translates them dynamic
const result = spawnSync(
process.execPath,
["node_modules/tsx/dist/cli.mjs", "scripts/i18n-coverage.ts", "--json"],
- { encoding: "utf8", maxBuffer: 1024 * 1024, stdio: ["ignore", reportFd, "pipe"] },
+ {
+ encoding: "utf8",
+ maxBuffer: 1024 * 1024,
+ stdio: ["ignore", reportFd, "pipe"],
+ },
);
assert.equal(result.status, 0, result.stderr);
report = JSON.parse(readFileSync(reportPath, "utf8"));
@@ -32,7 +42,11 @@ test("core chat failure keys are used even though the UI translates them dynamic
),
);
assert.ok(keys.length >= 28);
- assert.equal(new Set(keys).size, keys.length, "failure-copy keys must be unique");
+ assert.equal(
+ new Set(keys).size,
+ keys.length,
+ "failure-copy keys must be unique",
+ );
assert.deepEqual(
keys.filter((key) => report.unusedKeys.includes(key)),
[],