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 {
|
struct Preview_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
Preview(
|
Preview(
|
||||||
message:
|
message:
|
||||||
"""
|
"""
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt \
|
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 \
|
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 {
|
var accentColor: Color {
|
||||||
switch self {
|
switch self {
|
||||||
case .bubblegum, .buttercup, .lavender, .orange, .periwinkle, .poppy, .seafoam, .sky, .tan,
|
case .bubblegum, .buttercup, .lavender, .orange, .periwinkle, .poppy, .seafoam, .sky, .tan,
|
||||||
.teal, .yellow:
|
.teal, .yellow:
|
||||||
return .black
|
return .black
|
||||||
case .indigo, .magenta, .navy, .oxblood, .purple:
|
case .indigo, .magenta, .navy, .oxblood, .purple:
|
||||||
return .white
|
return .white
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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")!)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
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
|
||||||
final class RecordMeetingTests: XCTestCase {
|
final class RecordMeetingTests: XCTestCase {
|
||||||
func testTimer() async throws {
|
func testTimer() async throws {
|
||||||
let clock = TestClock()
|
let clock = TestClock()
|
||||||
|
|
||||||
let model = withDependencies {
|
let model = withDependencies {
|
||||||
$0.continuousClock = clock
|
$0.continuousClock = clock
|
||||||
$0.speechClient.authorizationStatus = { .denied }
|
$0.speechClient.authorizationStatus = { .denied }
|
||||||
|
@ -320,4 +321,3 @@ final class RecordMeetingTests: XCTestCase {
|
||||||
await task.value
|
await task.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ final class StandupDetailTests: XCTestCase {
|
||||||
|
|
||||||
XCTAssertNoDifference(alert, .speechRecognitionDenied)
|
XCTAssertNoDifference(alert, .speechRecognitionDenied)
|
||||||
}
|
}
|
||||||
|
|
||||||
func testOpenSettings() async {
|
func testOpenSettings() async {
|
||||||
let settingsOpened = LockIsolated(false)
|
let settingsOpened = LockIsolated(false)
|
||||||
let model = withDependencies {
|
let model = withDependencies {
|
||||||
|
|
|
@ -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, *)
|
||||||
|
|
Loading…
Reference in New Issue