Run swift-format
This commit is contained in:
parent
9e41fd55f9
commit
83934f8649
|
@ -34,7 +34,7 @@ struct Preview<Content: View>: View {
|
|||
struct Preview_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Preview(
|
||||
message:
|
||||
message:
|
||||
"""
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt \
|
||||
ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \
|
||||
|
|
|
@ -49,7 +49,7 @@ enum Theme: String, CaseIterable, Equatable, Hashable, Identifiable, Codable {
|
|||
var accentColor: Color {
|
||||
switch self {
|
||||
case .bubblegum, .buttercup, .lavender, .orange, .periwinkle, .poppy, .seafoam, .sky, .tan,
|
||||
.teal, .yellow:
|
||||
.teal, .yellow:
|
||||
return .black
|
||||
case .indigo, .magenta, .navy, .oxblood, .purple:
|
||||
return .white
|
||||
|
|
|
@ -117,7 +117,7 @@ final class StandupsListModel: ObservableObject {
|
|||
self.standups = [
|
||||
.mock,
|
||||
.designMock,
|
||||
.engineeringMock
|
||||
.engineeringMock,
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,8 @@ extension AlertState where Action == StandupsListModel.AlertAction {
|
|||
TextState("No")
|
||||
}
|
||||
} message: {
|
||||
TextState("""
|
||||
TextState(
|
||||
"""
|
||||
Unfortunately your past data failed to load. Would you like to load some mock data to play \
|
||||
around with?
|
||||
""")
|
||||
|
@ -259,7 +260,7 @@ struct StandupsList_Previews: PreviewProvider {
|
|||
initialData: try! JSONEncoder().encode([
|
||||
Standup.mock,
|
||||
.engineeringMock,
|
||||
.designMock
|
||||
.designMock,
|
||||
])
|
||||
)
|
||||
} operation: {
|
||||
|
@ -302,7 +303,7 @@ struct StandupsList_Previews: PreviewProvider {
|
|||
initialData: try! JSONEncoder().encode([
|
||||
Standup.mock,
|
||||
.engineeringMock,
|
||||
.designMock
|
||||
.designMock,
|
||||
])
|
||||
)
|
||||
} operation: {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import CustomDump
|
||||
import Dependencies
|
||||
import XCTest
|
||||
import CustomDump
|
||||
|
||||
@testable import Standups
|
||||
|
||||
@MainActor
|
||||
|
@ -21,7 +22,7 @@ final class EditStandupTests: XCTestCase {
|
|||
XCTAssertNoDifference(
|
||||
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(
|
||||
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(
|
||||
model.standup.attendees,
|
||||
[
|
||||
Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000004")!),
|
||||
Attendee(id: Attendee.ID(uuidString: "00000000-0000-0000-0000-000000000004")!)
|
||||
]
|
||||
)
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
import AsyncAlgorithms
|
||||
import CasePaths
|
||||
import CustomDump
|
||||
import Dependencies
|
||||
import XCTest
|
||||
import CustomDump
|
||||
|
||||
@testable import Standups
|
||||
|
||||
@MainActor
|
||||
final class RecordMeetingTests: XCTestCase {
|
||||
func testTimer() async throws {
|
||||
let clock = TestClock()
|
||||
|
||||
|
||||
let model = withDependencies {
|
||||
$0.continuousClock = clock
|
||||
$0.speechClient.authorizationStatus = { .denied }
|
||||
|
@ -320,4 +321,3 @@ final class RecordMeetingTests: XCTestCase {
|
|||
await task.value
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ final class StandupDetailTests: XCTestCase {
|
|||
|
||||
XCTAssertNoDifference(alert, .speechRecognitionDenied)
|
||||
}
|
||||
|
||||
|
||||
func testOpenSettings() async {
|
||||
let settingsOpened = LockIsolated(false)
|
||||
let model = withDependencies {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import CustomDump
|
||||
import SwiftUI
|
||||
import SwiftUINavigation
|
||||
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
|
||||
// Swift <5.7.
|
||||
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
|
||||
|
|
Loading…
Reference in New Issue