@@ -411,24 +411,24 @@ describe('instrument', () => {
411411 // currentStateIndex continues to increment while non-committed action causes error
412412 expect ( liftedStoreState . currentStateIndex ) . toBe ( 5 ) ;
413413 expect ( currentComputedState . state ) . toBe ( 3 ) ;
414- expect ( currentComputedState . error ) . toExist ;
414+ expect ( currentComputedState . error ) . toExist ( ) ;
415415
416416 configuredStore . replaceReducer ( counterWithAnotherBug ) ;
417417 liftedStoreState = configuredLiftedStore . getState ( ) ;
418418 currentComputedState = liftedStoreState . computedStates [ liftedStoreState . currentStateIndex ] ;
419- // currentStateIndex adjusts correctly when multiple actions are committed
419+ // currentStateIndex adjusts accordingly when multiple actions are committed
420420 expect ( liftedStoreState . currentStateIndex ) . toBe ( 2 ) ;
421421 expect ( currentComputedState . state ) . toBe ( 0 ) ;
422- expect ( currentComputedState . error ) . toExist ;
422+ expect ( currentComputedState . error ) . toExist ( ) ;
423423
424424 configuredLiftedStore . dispatch ( ActionCreators . jumpToState ( 0 ) ) ;
425425 configuredStore . replaceReducer ( counter ) ;
426426 liftedStoreState = configuredLiftedStore . getState ( ) ;
427- // currentStateIndex stays at 0 as actions are committed
427+ // currentStateIndex doesn't go below 0
428428 currentComputedState = liftedStoreState . computedStates [ liftedStoreState . currentStateIndex ] ;
429429 expect ( liftedStoreState . currentStateIndex ) . toBe ( 0 ) ;
430430 expect ( currentComputedState . state ) . toBe ( 0 ) ;
431- expect ( currentComputedState . error ) . toNotExist ;
431+ expect ( currentComputedState . error ) . toNotExist ( ) ;
432432
433433 spy . restore ( ) ;
434434 } ) ;
0 commit comments