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, {
|
||||
token: "tok",
|
||||
api,
|
||||
...testCase.options,
|
||||
...("options" in testCase ? testCase.options : {}),
|
||||
});
|
||||
|
||||
expect(createForumTopic).toHaveBeenCalledWith(...testCase.expectedCall);
|
||||
|
||||
Reference in New Issue
Block a user