mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -17,7 +17,7 @@ struct PollFormScreenViewModelTests {
|
||||
private var context: PollFormScreenViewModelType.Context {
|
||||
viewModel.context
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
mutating func newPollInitialState() async throws {
|
||||
setupViewModel()
|
||||
@@ -89,7 +89,7 @@ struct PollFormScreenViewModelTests {
|
||||
context.send(viewAction: .cancel)
|
||||
#expect(context.alertInfo != nil)
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
mutating func newPollSubmit() async throws {
|
||||
setupViewModel()
|
||||
@@ -97,7 +97,7 @@ struct PollFormScreenViewModelTests {
|
||||
context.options[0].text = "bla1"
|
||||
context.options[1].text = "bla2"
|
||||
#expect(!context.viewState.isSubmitButtonDisabled)
|
||||
|
||||
|
||||
let deferred = deferFulfillment(viewModel.actions) { $0 == .close }
|
||||
|
||||
try await confirmation { confirmation in
|
||||
@@ -115,7 +115,7 @@ struct PollFormScreenViewModelTests {
|
||||
try await deferred.fulfill()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
mutating func editPollSubmit() async throws {
|
||||
setupViewModel(mode: .edit(eventID: "foo", poll: .emptyDisclosed))
|
||||
@@ -123,7 +123,7 @@ struct PollFormScreenViewModelTests {
|
||||
context.question = "What is your favorite country?"
|
||||
context.options.append(.init(text: "France 🇫🇷"))
|
||||
#expect(!context.viewState.isSubmitButtonDisabled)
|
||||
|
||||
|
||||
let deferred = deferFulfillment(viewModel.actions) { $0 == .close }
|
||||
|
||||
try await confirmation { confirmation in
|
||||
@@ -152,7 +152,7 @@ struct PollFormScreenViewModelTests {
|
||||
context.question = "What is your favorite country?"
|
||||
context.options.append(.init(text: "France 🇫🇷"))
|
||||
#expect(!context.viewState.isSubmitButtonDisabled)
|
||||
|
||||
|
||||
let deferredFailure = deferFailure(viewModel.actions, timeout: .seconds(1)) { $0 == .close }
|
||||
context.send(viewAction: .delete)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user