import { describe, expect, it } from "vitest"; import type { FeishuMessageEvent } from "./bot.js"; import { getFeishuSequentialKey } from "./sequential-key.js";
it("keeps /btw on a stable per-chat lane across different message ids", () => { const first = createTextEvent({ text: "/btw one", messageId: "om_message_1" }); const second = createTextEvent({ text: "/btw two", messageId: "om_message_2" });
it("falls back to a stable btw lane when the message id is unavailable", () => { const event = createTextEvent({ text: "/btw what changed?" }); delete (event.message as { message_id?: string }).message_id;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.