Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { parseSoftResetCommand } from "./commands-reset-mode.js";
describe("parseSoftResetCommand", () => {
it("matches /reset soft with or without a tail", () => {
expect(parseSoftResetCommand("/reset soft")).toEqual({ matched: true, tail: "" });
expect(parseSoftResetCommand("/reset soft re-read persona files")).toEqual({
matched: true,
tail: "re-read persona files",
});
expect(parseSoftResetCommand("/reset soft\tre-read persona files")).toEqual({
matched: true,
tail: "re-read persona files",
});
expect(parseSoftResetCommand("/reset soft\nre-read persona files")).toEqual({
matched: true,
tail: "re-read persona files",
});
});
it("rejects reset-prefixed typos without a command boundary", () => {
expect(parseSoftResetCommand("/resetsoft")).toEqual({ matched: false });
expect(parseSoftResetCommand("/resetsoft hello")).toEqual({ matched: false });
});
});
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland