chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -1,15 +1,9 @@
import { describe, expect, test } from "vitest";
import {
formatForLog,
shortId,
summarizeAgentEventForWsLog,
} from "./ws-log.js";
import { formatForLog, shortId, summarizeAgentEventForWsLog } from "./ws-log.js";
describe("gateway ws log helpers", () => {
test("shortId compacts uuids and long strings", () => {
expect(shortId("12345678-1234-1234-1234-123456789abc")).toBe(
"12345678…9abc",
);
expect(shortId("12345678-1234-1234-1234-123456789abc")).toBe("12345678…9abc");
expect(shortId("a".repeat(30))).toBe("aaaaaaaaaaaa…aaaa");
expect(shortId("short")).toBe("short");
});