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 Oct 15, 2024
1 parent 163349b commit fec1995
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ChatChannelViewModel_Tests: StreamChatTestCase {

// Then
let dateString = viewModel.currentDateString
XCTAssert(dateString == expectedDate)
XCTAssertEqual(dateString, expectedDate)
}

func test_chatChannelVM_showReactionsOverlay() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {

func test_channelListItem_pollMessage_youVoted() throws {
// Given
let currentUserId = UserId.unique
let currentUserId = Self.currentUserId
let message = try mockPollMessage(isSentByCurrentUser: false, latestVotes: [
.mock(pollId: .unique, optionId: .unique, user: .mock(id: currentUserId)),
.unique,
Expand All @@ -179,7 +179,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {

func test_channelListItem_pollMessage_someoneVoted() throws {
// Given
let currentUserId = UserId.unique
let currentUserId = Self.currentUserId
let message = try mockPollMessage(isSentByCurrentUser: false, latestVotes: [
.mock(pollId: .unique, optionId: .unique, user: .mock(id: .unique, name: "Steve Jobs")),
.unique,
Expand Down Expand Up @@ -331,7 +331,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {
isSentByCurrentUser: isSentByCurrentUser,
poll: .mock(
name: "Test poll",
createdBy: .mock(id: "test", name: "test"),
createdBy: .mock(id: isSentByCurrentUser ? Self.currentUserId : "test", name: "test"),
latestVotes: latestVotes
)
)
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.
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.
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.
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.
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 fec1995

Please sign in to comment.