Skip to content

Commit

Permalink
Fix snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-vieira committed Nov 8, 2024
1 parent d432669 commit 7ff3542
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ class ChatChannelTestHelpers {
lastActiveWatchers: [ChatUser] = []
) -> ChatChannelController_Mock {
let config = ChannelConfig(commands: [Command(name: "giphy", description: "", set: "", args: "")])
let channel = chatChannel ?? ChatChannel.mockDMChannel(config: config, lastActiveWatchers: lastActiveWatchers)
let channel = chatChannel ?? ChatChannel.mockDMChannel(
config: config,
ownCapabilities: [.uploadFile],
lastActiveWatchers: lastActiveWatchers
)
let channelQuery = ChannelQuery(cid: channel.cid)
let channelListQuery = ChannelListQuery(filter: .containMembers(userIds: [chatClient.currentUserId ?? .unique]))
let channelController = ChatChannelController_Mock.mock(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ff3542

Please sign in to comment.