File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,14 @@ class RootTests: XCTestCase {
181
181
182
182
// MARK: Events
183
183
184
+ func testEventAddTokenFromURLSucceeded( ) {
185
+ var root = Root ( deviceCanScan: false )
186
+ let event : Root . Event = . addTokenFromURLSucceeded
187
+ let effect = root. update ( event)
188
+ // TODO: check that the component state hasn't changed
189
+ XCTAssertNil ( effect)
190
+ }
191
+
184
192
func testEventTokenFormSucceeded( ) {
185
193
var root = Root ( deviceCanScan: false )
186
194
@@ -199,7 +207,7 @@ class RootTests: XCTestCase {
199
207
}
200
208
201
209
// Ensure the view model now has a modal entry form.
202
- guard case . entryForm = root. viewModel ( for: [ ] , at: displayTime) . modal else {
210
+ guard case . entryForm = root. viewModel ( for: [ ] , at: displayTime) . modal else {
203
211
XCTFail ( " The view model should have a modal entry form. " )
204
212
return
205
213
}
You can’t perform that action at this time.
0 commit comments