Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { normalizeOutboundThreadId } from "./thread-id.js";
describe("normalizeOutboundThreadId", () => {
it.each([
{ input: undefined, expected: undefined },
{ input: null, expected: undefined },
{ input: " ", expected: undefined },
{ input: 123.9, expected: "123" },
{ input: " 456 ", expected: "456" },
{ input: Number.NaN, expected: undefined },
{ input: Number.POSITIVE_INFINITY, expected: undefined },
])("normalizes outbound thread id for %j", ({ input, expected }) => {
expect(normalizeOutboundThreadId(input)).toBe(expected);
});
});
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland