mirror of https://github.com/openclaw/openclaw.git
fix(test): guard optional forum topic options
This commit is contained in:
parent
843a037532
commit
1ef30b82b2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue