mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
Gateway tests: cover exact do not do that stop matching
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user