Skip to content

Commit a7369c0

Browse files
committed
Fix Tests
1 parent 72c3edf commit a7369c0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

StreamChatSwiftUITests/Tests/ChatThreadList/ChatThreadListView_Tests.swift

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CustomFactory: ViewFactory {
7171

7272
private class MockChatThreadListViewModel: ChatThreadListViewModel {
7373
static func empty() -> MockChatThreadListViewModel {
74-
return MockChatThreadListViewModel(
74+
MockChatThreadListViewModel(
7575
threads: [],
7676
isLoading: false,
7777
isReloading: false,
@@ -86,7 +86,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
8686
}
8787

8888
static func loading() -> MockChatThreadListViewModel {
89-
return MockChatThreadListViewModel(
89+
MockChatThreadListViewModel(
9090
threads: [],
9191
isLoading: true,
9292
isReloading: false,
@@ -101,7 +101,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
101101
}
102102

103103
static func withThreads() -> MockChatThreadListViewModel {
104-
return MockChatThreadListViewModel(
104+
MockChatThreadListViewModel(
105105
threads: mockThreads,
106106
isLoading: false,
107107
isReloading: false,
@@ -116,7 +116,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
116116
}
117117

118118
static func loadingMoreThreads() -> MockChatThreadListViewModel {
119-
return MockChatThreadListViewModel(
119+
MockChatThreadListViewModel(
120120
threads: mockThreads,
121121
isLoading: false,
122122
isReloading: false,
@@ -131,7 +131,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
131131
}
132132

133133
static func reloadingThreads() -> MockChatThreadListViewModel {
134-
return MockChatThreadListViewModel(
134+
MockChatThreadListViewModel(
135135
threads: mockThreads,
136136
isLoading: false,
137137
isReloading: true,
@@ -146,7 +146,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
146146
}
147147

148148
static func newThreadsAvailable() -> MockChatThreadListViewModel {
149-
return MockChatThreadListViewModel(
149+
MockChatThreadListViewModel(
150150
threads: mockThreads,
151151
isLoading: false,
152152
isReloading: false,
@@ -161,7 +161,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
161161
}
162162

163163
static func errorLoadingThreads() -> MockChatThreadListViewModel {
164-
return MockChatThreadListViewModel(
164+
MockChatThreadListViewModel(
165165
threads: [],
166166
isLoading: false,
167167
isReloading: false,
@@ -176,7 +176,7 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
176176
}
177177

178178
static func errorLoadingMoreThreads() -> MockChatThreadListViewModel {
179-
return MockChatThreadListViewModel(
179+
MockChatThreadListViewModel(
180180
threads: mockThreads,
181181
isLoading: false,
182182
isReloading: false,
@@ -223,7 +223,6 @@ private class MockChatThreadListViewModel: ChatThreadListViewModel {
223223
didChangeThreads changes: [ListChange<ChatThread>]
224224
) {}
225225

226-
227226
static var mockYoda = ChatUser.mock(id: .unique, name: "Yoda")
228227
static var mockVader = ChatUser.mock(id: .unique, name: "Vader")
229228

0 commit comments

Comments
 (0)