Skip to content

Commit 403df4c

Browse files
committed
test(feishu): use structured card action fixtures
1 parent c2213b1 commit 403df4c

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

‎extensions/feishu/src/monitor.card-action.lifecycle.test-support.ts‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,16 @@ describe("Feishu card-action lifecycle", () => {
359359
token: "tok-card-sdk-flat",
360360
action: {
361361
tag: "button",
362-
value: {
363-
command: "/help",
364-
},
362+
value: createFeishuCardInteractionEnvelope({
363+
k: "quick",
364+
a: "feishu.quick_actions.help",
365+
q: "/help",
366+
c: {
367+
u: "ou_user1",
368+
t: "p2p",
369+
e: Date.now() + 60_000,
370+
},
371+
}),
365372
},
366373
});
367374

@@ -382,9 +389,16 @@ describe("Feishu card-action lifecycle", () => {
382389
token: "tok-card-no-reply-target",
383390
action: {
384391
tag: "button",
385-
value: {
386-
command: "/help",
387-
},
392+
value: createFeishuCardInteractionEnvelope({
393+
k: "quick",
394+
a: "feishu.quick_actions.help",
395+
q: "/help",
396+
c: {
397+
u: "ou_user1",
398+
t: "p2p",
399+
e: Date.now() + 60_000,
400+
},
401+
}),
388402
},
389403
});
390404

0 commit comments

Comments
 (0)