Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Jul 31, 2023
1 parent 259e7a9 commit df1be47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
selectivelyUpdateTimelineItems(timelineItemsDictionary: timelineItemsDictionary)
} else {
state.timelineViewState.itemsDictionary = timelineItemsDictionary
state.timelineViewState.renderedTimelineIDs = Array(timelineItemsDictionary.keys)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class RoomNotificationSettingsScreenViewModelTests: XCTestCase {
try await deferredState.fulfill()

do {
var deferredViewState = deferFulfillment(context.$viewState.collect(2).first())
let deferredViewState = deferFulfillment(context.$viewState.collect(2).first())
context.send(viewAction: .setCustomMode(.allMessages))
try await deferredViewState.fulfill()

Expand All @@ -132,7 +132,7 @@ class RoomNotificationSettingsScreenViewModelTests: XCTestCase {
}

do {
var deferredViewState = deferFulfillment(context.$viewState.collect(2).first())
let deferredViewState = deferFulfillment(context.$viewState.collect(2).first())
context.send(viewAction: .setCustomMode(.mute))
try await deferredViewState.fulfill()

Expand All @@ -142,7 +142,7 @@ class RoomNotificationSettingsScreenViewModelTests: XCTestCase {
}

do {
var deferredViewState = deferFulfillment(context.$viewState.collect(2).first())
let deferredViewState = deferFulfillment(context.$viewState.collect(2).first())
context.send(viewAction: .setCustomMode(.mentionsAndKeywordsOnly))
try await deferredViewState.fulfill()

Expand Down

0 comments on commit df1be47

Please sign in to comment.