Skip to content

Commit ef9bfc6

Browse files
committed
fix(web-api): add tests for missing thread_ts and missing channel
1 parent dfbd847 commit ef9bfc6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/web-api/test/types/methods/chat.test-d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,16 @@ expectAssignable<Parameters<typeof web.chat.scheduledMessages.list>>([]); // no
588588
// -- sad path
589589
expectError(web.chat.startStream()); // lacking argument
590590
expectError(web.chat.startStream({})); // empty argument
591+
expectError(
592+
web.chat.startStream({
593+
channel: 'C1234', // missing thread_ts
594+
}),
595+
);
596+
expectError(
597+
web.chat.startStream({
598+
thread_ts: '1234.56', // missing channel
599+
}),
600+
);
591601
// -- happy path
592602
expectAssignable<Parameters<typeof web.chat.startStream>>([
593603
{

0 commit comments

Comments
 (0)