mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:08:27 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -159,16 +159,16 @@ describe("resolveSlackThreadTs", () => {
|
||||
|
||||
describe("buildSlackSlashCommandMatcher", () => {
|
||||
it("matches with or without a leading slash", () => {
|
||||
const matcher = buildSlackSlashCommandMatcher("clawd");
|
||||
const matcher = buildSlackSlashCommandMatcher("openclaw");
|
||||
|
||||
expect(matcher.test("clawd")).toBe(true);
|
||||
expect(matcher.test("/clawd")).toBe(true);
|
||||
expect(matcher.test("openclaw")).toBe(true);
|
||||
expect(matcher.test("/openclaw")).toBe(true);
|
||||
});
|
||||
|
||||
it("does not match similar names", () => {
|
||||
const matcher = buildSlackSlashCommandMatcher("clawd");
|
||||
const matcher = buildSlackSlashCommandMatcher("openclaw");
|
||||
|
||||
expect(matcher.test("/clawd-bot")).toBe(false);
|
||||
expect(matcher.test("clawd-bot")).toBe(false);
|
||||
expect(matcher.test("/openclaw-bot")).toBe(false);
|
||||
expect(matcher.test("openclaw-bot")).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user