fix(test): guard optional forum topic options

This commit is contained in:
Peter Steinberger
2026-02-22 00:09:57 +01:00
parent 843a037532
commit 1ef30b82b2

View File

@@ -1487,7 +1487,7 @@ describe("createForumTopicTelegram", () => {
const result = await createForumTopicTelegram(testCase.target, testCase.title, {
token: "tok",
api,
...testCase.options,
...("options" in testCase ? testCase.options : {}),
});
expect(createForumTopic).toHaveBeenCalledWith(...testCase.expectedCall);