test(telegram): avoid current marker in model display regression (#71016) (thanks @iskim77)

This commit is contained in:
Peter Steinberger
2026-04-25 02:17:12 +01:00
parent a9c46d5b1a
commit e68b2269b9

View File

@@ -1143,10 +1143,8 @@ describe("createTelegramBot", () => {
text: "GPT 4.1 Bridge",
callback_data: "mdl_sel_openai/gpt-4.1",
});
expect(buttons).toContainEqual({
text: "GPT Five Bridge",
callback_data: "mdl_sel_openai/gpt-5",
});
const gpt5Button = buttons?.find((button) => button.callback_data === "mdl_sel_openai/gpt-5");
expect(gpt5Button?.text?.replace(" ✓", "")).toBe("GPT Five Bridge");
expect(answerCallbackQuerySpy).toHaveBeenCalledWith("cbq-model-display-names-1");
});