mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
Refine UTs
This commit is contained in:
@@ -106,7 +106,8 @@ class UserSessionCardViewDataTests: XCTestCase {
|
||||
let dataProvider = UserSessionsDataProvider(session: mxSession)
|
||||
|
||||
let accountDataEvents: [String: Any] = [
|
||||
"io.element.matrix_client_information.D": ""
|
||||
"io.element.matrix_client_information.D": "",
|
||||
"foo": ""
|
||||
]
|
||||
|
||||
let expectedObsoletedEvents: Set = [
|
||||
@@ -123,7 +124,8 @@ class UserSessionCardViewDataTests: XCTestCase {
|
||||
let dataProvider = UserSessionsDataProvider(session: mxSession)
|
||||
|
||||
let accountDataEvents: [String: Any] = [
|
||||
"io.element.matrix_client_information.C": ""
|
||||
"io.element.matrix_client_information.C": "",
|
||||
"foo": ""
|
||||
]
|
||||
|
||||
let expectedObsoletedEvents: Set<String> = []
|
||||
@@ -138,7 +140,7 @@ class UserSessionCardViewDataTests: XCTestCase {
|
||||
|
||||
let expectedObsoletedEvents = Set(["D", "E", "F"].map { "io.element.matrix_client_information.\($0)"})
|
||||
|
||||
let accountDataEvents: [String: Any] = expectedObsoletedEvents.reduce(into: [:]) { partialResult, value in
|
||||
let accountDataEvents: [String: Any] = expectedObsoletedEvents.reduce(into: ["foo": ""]) { partialResult, value in
|
||||
partialResult[value] = ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user