Run swift-format

This commit is contained in:
mbrandonw 2023-01-09 17:19:30 +00:00 committed by github-actions[bot]
parent 9e41fd55f9
commit 83934f8649
7 changed files with 17 additions and 16 deletions

View File

@ -117,7 +117,7 @@ final class StandupsListModel: ObservableObject {
self.standups = [ self.standups = [
.mock, .mock,
.designMock, .designMock,
.engineeringMock .engineeringMock,
] ]
} }
@ -138,7 +138,8 @@ extension AlertState where Action == StandupsListModel.AlertAction {
TextState("No") TextState("No")
} }
} message: { } message: {
TextState(""" TextState(
"""
Unfortunately your past data failed to load. Would you like to load some mock data to play \ Unfortunately your past data failed to load. Would you like to load some mock data to play \
around with? around with?
""") """)
@ -259,7 +260,7 @@ struct StandupsList_Previews: PreviewProvider {
initialData: try! JSONEncoder().encode([ initialData: try! JSONEncoder().encode([
Standup.mock, Standup.mock,
.engineeringMock, .engineeringMock,
.designMock .designMock,
]) ])
) )
} operation: { } operation: {
@ -302,7 +303,7 @@ struct StandupsList_Previews: PreviewProvider {
initialData: try! JSONEncoder().encode([ initialData: try! JSONEncoder().encode([
Standup.mock, Standup.mock,
.engineeringMock, .engineeringMock,
.designMock .designMock,
]) ])
) )
} operation: { } operation: {

View File

@ -1,6 +1,7 @@
import CustomDump
import Dependencies import Dependencies
import XCTest import XCTest
import CustomDump
@testable import Standups @testable import Standups
@MainActor @MainActor
@ -21,7 +22,7 @@ final class EditStandupTests: XCTestCase {
XCTAssertNoDifference( XCTAssertNoDifference(
model.standup.attendees, model.standup.attendees,
[ [
Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000000")!), Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000000")!)
] ]
) )
@ -117,7 +118,7 @@ final class EditStandupTests: XCTestCase {
XCTAssertNoDifference( XCTAssertNoDifference(
model.standup.attendees, model.standup.attendees,
[ [
Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000001")!), Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000001")!)
] ]
) )
@ -130,7 +131,7 @@ final class EditStandupTests: XCTestCase {
XCTAssertNoDifference( XCTAssertNoDifference(
model.standup.attendees, model.standup.attendees,
[ [
Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000004")!), Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000004")!)
] ]
) )
} }

View File

@ -1,8 +1,9 @@
import AsyncAlgorithms import AsyncAlgorithms
import CasePaths import CasePaths
import CustomDump
import Dependencies import Dependencies
import XCTest import XCTest
import CustomDump
@testable import Standups @testable import Standups
@MainActor @MainActor
@ -320,4 +321,3 @@ final class RecordMeetingTests: XCTestCase {
await task.value await task.value
} }
} }

View File

@ -1,4 +1,5 @@
import CustomDump import CustomDump
import SwiftUI
import SwiftUINavigation import SwiftUINavigation
import XCTest import XCTest
@ -88,8 +89,6 @@ final class AlertTests: XCTestCase {
} }
} }
import SwiftUI
// NB: This is a compile time test to make sure that async action closures can be used in // NB: This is a compile time test to make sure that async action closures can be used in
// Swift <5.7. // Swift <5.7.
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) @available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)