Skip to content

Commit f998a7f

Browse files
committed
Fix unit tests
1 parent c941df3 commit f998a7f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3820,7 +3820,7 @@
38203820
isa = XCRemoteSwiftPackageReference;
38213821
repositoryURL = "https://github.com/bpollman/stream-chat-swift.git";
38223822
requirement = {
3823-
branch = "update-dm-mocks";
3823+
branch = develop;
38243824
kind = branch;
38253825
};
38263826
};

StreamChatSwiftUITests/Tests/ChatChannel/ChannelInfo/ChatChannelInfoViewModel_Tests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ class ChatChannelInfoViewModel_Tests: StreamChatTestCase {
236236

237237
func test_chatChannelInfoVM_leaveButtonShownInDM() {
238238
// Given
239-
let channel = ChatChannel.mockDMChannel(
240-
name: "Test",
239+
let cidDM = ChannelId(type: .messaging, id: "!members" + .newUniqueId)
240+
let channel = ChatChannel.mock(
241+
cid: cidDM,
241242
ownCapabilities: [.deleteChannel]
242243
)
243244
let viewModel = ChatChannelInfoViewModel(channel: channel)

0 commit comments

Comments
 (0)