Skip to content

Commit

Permalink
Fix: Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nimau committed Mar 21, 2023
1 parent 2979f98 commit 83a10e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Riot/Modules/Pills/PillsFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PillsFormatter: NSObject {
return
}

var pillString: String
let pillString: String
switch mode {
case .displayname:
pillString = data.displayText
Expand Down
2 changes: 1 addition & 1 deletion RiotTests/MatrixKitTests/MXKEventFormatterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ - (void)testLinkWithRoomAliasLink
}
}];

XCTAssertEqual(hasLink, false, @"There should be no link in this case. We let the UI manage the link");
XCTAssertEqual(hasLink, true, @"There should be a link, so that a Pill can be rendered for this permalink.");
}

#pragma mark - Event sender/target info
Expand Down

0 comments on commit 83a10e2

Please sign in to comment.