mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:34:31 +00:00
fix(test): guard optional forum topic options
This commit is contained in:
@@ -1487,7 +1487,7 @@ describe("createForumTopicTelegram", () => {
|
|||||||
const result = await createForumTopicTelegram(testCase.target, testCase.title, {
|
const result = await createForumTopicTelegram(testCase.target, testCase.title, {
|
||||||
token: "tok",
|
token: "tok",
|
||||||
api,
|
api,
|
||||||
...testCase.options,
|
...("options" in testCase ? testCase.options : {}),
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(createForumTopic).toHaveBeenCalledWith(...testCase.expectedCall);
|
expect(createForumTopic).toHaveBeenCalledWith(...testCase.expectedCall);
|
||||||
|
|||||||
Reference in New Issue
Block a user