Gateway tests: cover exact do not do that stop matching

This commit is contained in:
Vincent Koc 2026-02-24 18:49:20 -05:00
parent 91391bbe01
commit 83f586b93b
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ describe("isChatStopCommandText", () => {
it("matches slash and standalone multilingual stop forms", () => {
expect(isChatStopCommandText(" /STOP!!! ")).toBe(true);
expect(isChatStopCommandText("stop please")).toBe(true);
expect(isChatStopCommandText("do not do that")).toBe(true);
expect(isChatStopCommandText("停止")).toBe(true);
expect(isChatStopCommandText("やめて")).toBe(true);
expect(isChatStopCommandText("توقف")).toBe(true);
@ -55,6 +56,7 @@ describe("isChatStopCommandText", () => {
expect(isChatStopCommandText("stopp")).toBe(true);
expect(isChatStopCommandText("pare")).toBe(true);
expect(isChatStopCommandText("/status")).toBe(false);
expect(isChatStopCommandText("please do not do that")).toBe(false);
expect(isChatStopCommandText("keep going")).toBe(false);
});
});