From 913c10fea48ea95594cf1fba1a00dd1da7205b5a Mon Sep 17 00:00:00 2001 From: echenley Date: Wed, 10 Feb 2016 11:42:42 -0600 Subject: [PATCH] fix expect syntax --- test/instrument.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/instrument.spec.js b/test/instrument.spec.js index 59a4f789..e1af96e2 100644 --- a/test/instrument.spec.js +++ b/test/instrument.spec.js @@ -411,24 +411,24 @@ describe('instrument', () => { // currentStateIndex continues to increment while non-committed action causes error expect(liftedStoreState.currentStateIndex).toBe(5); expect(currentComputedState.state).toBe(3); - expect(currentComputedState.error).toExist; + expect(currentComputedState.error).toExist(); configuredStore.replaceReducer(counterWithAnotherBug); liftedStoreState = configuredLiftedStore.getState(); currentComputedState = liftedStoreState.computedStates[liftedStoreState.currentStateIndex]; - // currentStateIndex adjusts correctly when multiple actions are committed + // currentStateIndex adjusts accordingly when multiple actions are committed expect(liftedStoreState.currentStateIndex).toBe(2); expect(currentComputedState.state).toBe(0); - expect(currentComputedState.error).toExist; + expect(currentComputedState.error).toExist(); configuredLiftedStore.dispatch(ActionCreators.jumpToState(0)); configuredStore.replaceReducer(counter); liftedStoreState = configuredLiftedStore.getState(); - // currentStateIndex stays at 0 as actions are committed + // currentStateIndex doesn't go below 0 currentComputedState = liftedStoreState.computedStates[liftedStoreState.currentStateIndex]; expect(liftedStoreState.currentStateIndex).toBe(0); expect(currentComputedState.state).toBe(0); - expect(currentComputedState.error).toNotExist; + expect(currentComputedState.error).toNotExist(); spy.restore(); });