mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:30:57 +00:00
refactor: move Feishu model override parsing to plugin
This commit is contained in:
18
extensions/feishu/src/conversation-id.test.ts
Normal file
18
extensions/feishu/src/conversation-id.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildFeishuModelOverrideParentCandidates } from "./conversation-id.js";
|
||||
|
||||
describe("buildFeishuModelOverrideParentCandidates", () => {
|
||||
it("returns topic and chat fallback ids for sender-scoped topics", () => {
|
||||
expect(
|
||||
buildFeishuModelOverrideParentCandidates(
|
||||
"oc_group_chat:Topic:om_topic_root:Sender:ou_topic_user",
|
||||
),
|
||||
).toEqual(["oc_group_chat:topic:om_topic_root", "oc_group_chat"]);
|
||||
});
|
||||
|
||||
it("returns chat fallback ids for sender-scoped chats", () => {
|
||||
expect(buildFeishuModelOverrideParentCandidates("oc_group_chat:sender:ou_topic_user")).toEqual([
|
||||
"oc_group_chat",
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user