Skip to content

Commit

Permalink
Do not skip tests in ChatChannelVC_Tests and ChatMessageSearchVC_Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laevandus committed Nov 28, 2024
1 parent 04fb53e commit 96e1720
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,6 @@ final class ChatChannelVC_Tests: XCTestCase {
}

func test_didReceiveNewMessagePendingEvent_whenFirstPageNotLoaded_whenMessageSentByCurrentUser_whenMessageNotPartOfThread_thenLoadsFirstPage() throws {
throw XCTSkip()

channelControllerMock.hasLoadedAllNextMessages_mock = false
let message = ChatMessage.mock(
parentMessageId: nil,
Expand All @@ -675,8 +673,6 @@ final class ChatChannelVC_Tests: XCTestCase {
}

func test_didReceiveNewMessagePendingEvent_whenIsFirstPageLoaded_thenDoestNotLoadFirstPage() throws {
throw XCTSkip()

channelControllerMock.hasLoadedAllNextMessages_mock = true
let message = ChatMessage.mock(
parentMessageId: nil,
Expand All @@ -690,8 +686,6 @@ final class ChatChannelVC_Tests: XCTestCase {
}

func test_didReceiveNewMessagePendingEvent_whenMessageSentByOtherUser_thenDoestNotLoadFirstPage() throws {
throw XCTSkip()

channelControllerMock.hasLoadedAllNextMessages_mock = false
let message = ChatMessage.mock(
parentMessageId: nil,
Expand All @@ -705,8 +699,6 @@ final class ChatChannelVC_Tests: XCTestCase {
}

func test_didReceiveNewMessagePendingEvent_whenMessageIsPartOfThread_thenDoestNotLoadFirstPage() throws {
throw XCTSkip()

channelControllerMock.hasLoadedAllNextMessages_mock = false
let message = ChatMessage.mock(
parentMessageId: .unique,
Expand All @@ -720,23 +712,17 @@ final class ChatChannelVC_Tests: XCTestCase {
}

func test_shouldLoadFirstPage_thenLoadFirstPage() throws {
throw XCTSkip()

vc.chatMessageListVCShouldLoadFirstPage(vc.messageListVC)
XCTAssertEqual(channelControllerMock.loadFirstPageCallCount, 1)
}

func test_shouldLoadPageAroundMessageId_thenLoadPageAroundMessageId() throws {
throw XCTSkip()

vc.chatMessageListVC(vc.messageListVC, shouldLoadPageAroundMessageId: .unique) { _ in }
XCTAssertEqual(channelControllerMock.loadPageAroundMessageIdCallCount, 1)
}

// This test is temporary until we support jumping to inside a thread.
func test_shouldLoadPageAroundMessageId_whenMessageIsInsideThread_thenDontLoadPageAroundMessageId() throws {
throw XCTSkip()

let messageInsideThread = MessagePayload.dummy(
parentId: .unique,
showReplyInChannel: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,12 @@ final class ChatMessageSearchVC_Tests: XCTestCase {
}

func test_loadSearchResults() throws {
throw XCTSkip()

vc.loadSearchResults(with: "Dummy")

XCTAssertEqual(mockedMessageSearchController.searchCallCount, 1)
}

func test_loadMoreSearchResults() throws {
throw XCTSkip()

vc.loadMoreSearchResults()

XCTAssertEqual(mockedMessageSearchController.loadNextMessagesCallCount, 1)
Expand Down

0 comments on commit 96e1720

Please sign in to comment.