Skip to content

Commit c845814

Browse files
Fixed a broken test
1 parent 1cdd74e commit c845814

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
99
### 🔄 Changed
1010
- Improved subtitle info in pinned messages view [#594](https://github.com/GetStream/stream-chat-swiftui/pull/594)
1111
- The `image(for channel: ChatChannel)` in `ChannelHeaderLoader` is now open [#595](https://github.com/GetStream/stream-chat-swiftui/pull/595)
12-
- FlagMessage Action is now only shown if user has permission to perform action [#599](https://github.com/GetStream/stream-chat-swiftui/pull/599)
12+
- FlagMessage Action is now only shown if the user has a permission to perform the action [#599](https://github.com/GetStream/stream-chat-swiftui/pull/599)
1313

1414
### 🐞 Fixed
1515
- Typing users did not update reliably in the message list [#591](https://github.com/GetStream/stream-chat-swiftui/pull/591)

StreamChatSwiftUITests/Tests/ChatChannel/MessageActions_Tests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@ class MessageActions_Tests: StreamChatTestCase {
6363
)
6464

6565
// Then
66-
XCTAssert(messageActions.count == 7)
66+
XCTAssert(messageActions.count == 6)
6767
XCTAssert(messageActions[0].title == "Reply")
6868
XCTAssert(messageActions[1].title == "Thread Reply")
6969
XCTAssert(messageActions[2].title == "Pin to conversation")
7070
XCTAssert(messageActions[3].title == "Copy Message")
7171
XCTAssert(messageActions[4].title == "Mark Unread")
72-
XCTAssert(messageActions[5].title == "Flag Message")
73-
XCTAssert(messageActions[6].title == "Mute User")
72+
XCTAssert(messageActions[5].title == "Mute User")
7473
}
7574

7675
func test_messageActions_otherUserDefaultBlockingEnabled() {

0 commit comments

Comments
 (0)