Skip to content

Commit

Permalink
chore: update mock files
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Apr 8, 2024
1 parent 754e029 commit 2e3e415
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/uikit-testing-tools/src/mocks/createMockChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class MockChannel implements GetMockProps<Params, SendbirdBaseChannel & Sendbird
pinnedMessageIds = [];
unreadMentionCount = 0;
unreadMessageCount = 0;
totalUnreadReplyCount = 0;

serialize(): object {
throw new Error('Method not implemented.');
Expand Down Expand Up @@ -637,6 +638,9 @@ class MockChannel implements GetMockProps<Params, SendbirdBaseChannel & Sendbird
throw new Error('Method not implemented.');
}

createThreadedParentMessageListQuery(): PreviousMessageListQuery {
throw new Error('Method not implemented.');
}
createPinnedMessageListQuery(_params?: PinnedMessageListQueryParams | undefined): PinnedMessageListQuery {
throw new Error('Method not implemented.');
}
Expand Down
6 changes: 6 additions & 0 deletions packages/uikit-testing-tools/src/mocks/createMockMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ class MockMessage implements GetMockProps<Params, SendbirdBaseMessage> {
updateFeedback(_: Feedback): Promise<void> {
return Promise.resolve(undefined);
}
markThreadAsRead(): Promise<void> {
return Promise.resolve();
}
setPushNotificationEnabled(_: boolean): Promise<void> {
return Promise.resolve();
}

asFileMessage(): SendbirdFileMessage {
return this as unknown as SendbirdFileMessage;
Expand Down

0 comments on commit 2e3e415

Please sign in to comment.