Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { normalizePluginIdScope } from "./plugin-scope.js";
describe("normalizePluginIdScope", () => {
it("normalizes logical duplicates into a stable scope", () => {
expect(normalizePluginIdScope([" beta ", "alpha", "beta", ""])).toEqual(["alpha", "beta"]);
});
it("ignores non-string scope values instead of throwing", () => {
expect(
normalizePluginIdScope(["alpha", null, 42, { id: "beta" }, " beta "] as unknown[]),
).toEqual(["alpha", "beta"]);
});
});
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland