mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:41:23 +00:00
test: remove low-signal malformed slash button edge case
This commit is contained in:
@@ -217,23 +217,6 @@ describe("Slack native command argument menus", () => {
|
|||||||
response_type: "ephemeral",
|
response_type: "ephemeral",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("treats malformed percent-encoding as an invalid button (no throw)", async () => {
|
|
||||||
await argMenuHandler({
|
|
||||||
ack: vi.fn().mockResolvedValue(undefined),
|
|
||||||
action: { value: "cmdarg|%E0%A4%A|mode|on|U1" },
|
|
||||||
body: { user: { id: "U1" }, channel: { id: "C1" } },
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(harness.postEphemeral).toHaveBeenCalledWith(
|
|
||||||
expect.objectContaining({
|
|
||||||
token: "bot-token",
|
|
||||||
channel: "C1",
|
|
||||||
user: "U1",
|
|
||||||
text: "Sorry, that button is no longer valid.",
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function createPolicyHarness() {
|
function createPolicyHarness() {
|
||||||
|
|||||||
Reference in New Issue
Block a user