@@ -66,7 +66,7 @@ class RootTests: XCTestCase {
66
66
}
67
67
68
68
// Hide the backup info.
69
- let hideAction : Root . Action = . infoEffect( . done)
69
+ let hideAction : Root . Action = . menuAction ( . infoEffect( . done) )
70
70
let hideEffect : Root . Effect ?
71
71
do {
72
72
hideEffect = try root. update ( with: hideAction)
@@ -113,7 +113,7 @@ class RootTests: XCTestCase {
113
113
}
114
114
115
115
// Show the license info.
116
- let showAction : Root . Action = . infoListEffect( . showLicenseInfo)
116
+ let showAction : Root . Action = . menuAction ( . infoListEffect( . showLicenseInfo) )
117
117
let showEffect : Root . Effect ?
118
118
do {
119
119
showEffect = try root. update ( with: showAction)
@@ -138,7 +138,7 @@ class RootTests: XCTestCase {
138
138
}
139
139
140
140
// Hide the license info.
141
- let hideAction : Root . Action = . infoEffect( . done)
141
+ let hideAction : Root . Action = . menuAction ( . infoEffect( . done) )
142
142
let hideEffect : Root . Effect ?
143
143
do {
144
144
hideEffect = try root. update ( with: hideAction)
@@ -164,9 +164,10 @@ class RootTests: XCTestCase {
164
164
return
165
165
}
166
166
167
- let action : Root . Action = . infoEffect( . openURL( url) )
167
+ let action : Root . Action = . menuAction ( . infoEffect( . openURL( url) ) )
168
168
let effect : Root . Effect ?
169
169
do {
170
+ XCTAssertNil ( try root. update ( with: . tokenListAction( . showBackupInfo) ) )
170
171
effect = try root. update ( with: action)
171
172
} catch {
172
173
XCTFail ( " Unexpected error: \( error) " )
0 commit comments