mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 02:25:20 +00:00
Fix tests that were broken after localization integration (#677)
This commit is contained in:
@@ -21,7 +21,7 @@ final class LocationNotesManagerTests: XCTestCase {
|
|||||||
XCTAssertFalse(subscribeCalled)
|
XCTAssertFalse(subscribeCalled)
|
||||||
XCTAssertEqual(manager.state, .noRelays)
|
XCTAssertEqual(manager.state, .noRelays)
|
||||||
XCTAssertTrue(manager.initialLoadComplete)
|
XCTAssertTrue(manager.initialLoadComplete)
|
||||||
XCTAssertEqual(manager.errorMessage, "No geo relays available near this location. Try again soon.")
|
XCTAssertEqual(manager.errorMessage, "no geo relays available near this location. try again soon.")
|
||||||
}
|
}
|
||||||
|
|
||||||
func testSendWhenNoRelaysSurfacesError() {
|
func testSendWhenNoRelaysSurfacesError() {
|
||||||
@@ -40,7 +40,7 @@ final class LocationNotesManagerTests: XCTestCase {
|
|||||||
|
|
||||||
XCTAssertFalse(sendCalled)
|
XCTAssertFalse(sendCalled)
|
||||||
XCTAssertEqual(manager.state, .noRelays)
|
XCTAssertEqual(manager.state, .noRelays)
|
||||||
XCTAssertEqual(manager.errorMessage, "No geo relays available near this location. Try again soon.")
|
XCTAssertEqual(manager.errorMessage, "no geo relays available near this location. try again soon.")
|
||||||
}
|
}
|
||||||
|
|
||||||
func testSubscribeUsesGeoRelaysAndAppendsNotes() {
|
func testSubscribeUsesGeoRelaysAndAppendsNotes() {
|
||||||
|
|||||||
Reference in New Issue
Block a user