@@ -8,15 +8,15 @@ final class AlertTests: XCTestCase {
8
8
let alert = AlertState (
9
9
title: . init( " Alert! " ) ,
10
10
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 ) ) ,
12
12
secondaryButton: . cancel( . init( " Cancel " ) , action: . send( false ) )
13
13
)
14
14
XCTAssertNoDifference (
15
15
alert,
16
16
AlertState (
17
17
title: . init( " Alert! " ) ,
18
18
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 ) ) ,
20
20
secondaryButton: . cancel( . init( " Cancel " ) , action: . send( false ) )
21
21
)
22
22
)
@@ -30,16 +30,16 @@ final class AlertTests: XCTestCase {
30
30
title: " Alert! " ,
31
31
actions: [
32
32
[0]: ButtonState(
33
- role: ButtonStateRole .destructive,
34
- action: ButtonStateAction .send(
33
+ role: .destructive,
34
+ action: .send(
35
35
true,
36
36
animation: Animation.easeInOut
37
37
),
38
38
label: " Destroy "
39
39
),
40
40
[1]: ButtonState(
41
- role: ButtonStateRole .cancel,
42
- action: ButtonStateAction .send(
41
+ role: .cancel,
42
+ action: .send(
43
43
false
44
44
),
45
45
label: " Cancel "
@@ -57,7 +57,7 @@ final class AlertTests: XCTestCase {
57
57
title: . init( " Alert! " ) ,
58
58
message: . init( " Something went wrong... " ) ,
59
59
buttons: [
60
- . destructive( . init( " Destroy " ) , action: . send( true , animation: . default ) ) ,
60
+ . destructive( . init( " Destroy " ) , action: . send( true , animation: . easeInOut ) ) ,
61
61
. cancel( . init( " Cancel " ) , action: . send( false ) ) ,
62
62
]
63
63
) ,
@@ -70,16 +70,16 @@ final class AlertTests: XCTestCase {
70
70
title: " Alert! " ,
71
71
actions: [
72
72
[0]: ButtonState(
73
- role: ButtonStateRole .destructive,
74
- action: ButtonStateAction .send(
73
+ role: .destructive,
74
+ action: .send(
75
75
true,
76
76
animation: Animation.easeInOut
77
77
),
78
78
label: " Destroy "
79
79
),
80
80
[1]: ButtonState(
81
- role: ButtonStateRole .cancel,
82
- action: ButtonStateAction .send(
81
+ role: .cancel,
82
+ action: .send(
83
83
false
84
84
),
85
85
label: " Cancel "
0 commit comments