Skip to content

Commit 4425e34

Browse files
committed
Fix menu actions in tests
1 parent efde33f commit 4425e34

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

AuthenticatorTests/RootTests.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class RootTests: XCTestCase {
6666
}
6767

6868
// Hide the backup info.
69-
let hideAction: Root.Action = .infoEffect(.done)
69+
let hideAction: Root.Action = .menuAction(.infoEffect(.done))
7070
let hideEffect: Root.Effect?
7171
do {
7272
hideEffect = try root.update(with: hideAction)
@@ -113,7 +113,7 @@ class RootTests: XCTestCase {
113113
}
114114

115115
// Show the license info.
116-
let showAction: Root.Action = .infoListEffect(.showLicenseInfo)
116+
let showAction: Root.Action = .menuAction(.infoListEffect(.showLicenseInfo))
117117
let showEffect: Root.Effect?
118118
do {
119119
showEffect = try root.update(with: showAction)
@@ -138,7 +138,7 @@ class RootTests: XCTestCase {
138138
}
139139

140140
// Hide the license info.
141-
let hideAction: Root.Action = .infoEffect(.done)
141+
let hideAction: Root.Action = .menuAction(.infoEffect(.done))
142142
let hideEffect: Root.Effect?
143143
do {
144144
hideEffect = try root.update(with: hideAction)
@@ -164,9 +164,10 @@ class RootTests: XCTestCase {
164164
return
165165
}
166166

167-
let action: Root.Action = .infoEffect(.openURL(url))
167+
let action: Root.Action = .menuAction(.infoEffect(.openURL(url)))
168168
let effect: Root.Effect?
169169
do {
170+
XCTAssertNil(try root.update(with: .tokenListAction(.showBackupInfo)))
170171
effect = try root.update(with: action)
171172
} catch {
172173
XCTFail("Unexpected error: \(error)")

0 commit comments

Comments
 (0)