Skip to content

Commit db922a3

Browse files
committed
Fix tests for latest packages
1 parent 22b660a commit db922a3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Tests/SwiftUINavigationTests/AlertTests.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ final class AlertTests: XCTestCase {
88
let alert = AlertState(
99
title: .init("Alert!"),
1010
message: .init("Something went wrong..."),
11-
primaryButton: .destructive(.init("Destroy"), action: .send(true, animation: .default)),
11+
primaryButton: .destructive(.init("Destroy"), action: .send(true, animation: .easeInOut)),
1212
secondaryButton: .cancel(.init("Cancel"), action: .send(false))
1313
)
1414
XCTAssertNoDifference(
1515
alert,
1616
AlertState(
1717
title: .init("Alert!"),
1818
message: .init("Something went wrong..."),
19-
primaryButton: .destructive(.init("Destroy"), action: .send(true, animation: .default)),
19+
primaryButton: .destructive(.init("Destroy"), action: .send(true, animation: .easeInOut)),
2020
secondaryButton: .cancel(.init("Cancel"), action: .send(false))
2121
)
2222
)
@@ -30,16 +30,16 @@ final class AlertTests: XCTestCase {
3030
title: "Alert!",
3131
actions: [
3232
[0]: ButtonState(
33-
role: ButtonStateRole.destructive,
34-
action: ButtonStateAction.send(
33+
role: .destructive,
34+
action: .send(
3535
true,
3636
animation: Animation.easeInOut
3737
),
3838
label: "Destroy"
3939
),
4040
[1]: ButtonState(
41-
role: ButtonStateRole.cancel,
42-
action: ButtonStateAction.send(
41+
role: .cancel,
42+
action: .send(
4343
false
4444
),
4545
label: "Cancel"
@@ -57,7 +57,7 @@ final class AlertTests: XCTestCase {
5757
title: .init("Alert!"),
5858
message: .init("Something went wrong..."),
5959
buttons: [
60-
.destructive(.init("Destroy"), action: .send(true, animation: .default)),
60+
.destructive(.init("Destroy"), action: .send(true, animation: .easeInOut)),
6161
.cancel(.init("Cancel"), action: .send(false)),
6262
]
6363
),
@@ -70,16 +70,16 @@ final class AlertTests: XCTestCase {
7070
title: "Alert!",
7171
actions: [
7272
[0]: ButtonState(
73-
role: ButtonStateRole.destructive,
74-
action: ButtonStateAction.send(
73+
role: .destructive,
74+
action: .send(
7575
true,
7676
animation: Animation.easeInOut
7777
),
7878
label: "Destroy"
7979
),
8080
[1]: ButtonState(
81-
role: ButtonStateRole.cancel,
82-
action: ButtonStateAction.send(
81+
role: .cancel,
82+
action: .send(
8383
false
8484
),
8585
label: "Cancel"

Tests/SwiftUINavigationTests/ButtonStateTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class ButtonStateTests: XCTestCase {
2121
"""
2222
}
2323

24-
let button = ButtonState(action: .send((), animation: .default)) {
24+
let button = ButtonState(action: .send((), animation: .easeInOut)) {
2525
TextState("Animate!")
2626
}
2727

0 commit comments

Comments
 (0)