Skip to content

Commit 441ba0d

Browse files
committed
clarify comments
1 parent 449b73f commit 441ba0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/instrument.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ describe('instrument', () => {
323323
expect(liftedStoreState.committedState).toBe(undefined);
324324
expect(liftedStoreState.stagedActionIds).toInclude(1);
325325

326-
// Triggers auto-commit.
326+
// Trigger auto-commit.
327327
configuredStore.dispatch({ type: 'INCREMENT' });
328328
liftedStoreState = configuredLiftedStore.getState();
329329

@@ -372,11 +372,11 @@ describe('instrument', () => {
372372
storeWithBug.dispatch({ type: 'DECREMENT' });
373373
expect(liftedStoreWithBug.getState().stagedActionIds.length).toBe(7);
374374

375-
// should auto-commit only 2 non-error actions
375+
// Auto-commit 2 actions by "fixing" reducer bug, but introducing another.
376376
storeWithBug.replaceReducer(counterWithAnotherBug);
377377
expect(liftedStoreWithBug.getState().stagedActionIds.length).toBe(5);
378378

379-
// should auto-commit down to 3 actions
379+
// Auto-commit 2 more actions by "fixing" other reducer bug.
380380
storeWithBug.replaceReducer(counter);
381381
expect(liftedStoreWithBug.getState().stagedActionIds.length).toBe(3);
382382

@@ -392,7 +392,7 @@ describe('instrument', () => {
392392
liftedStoreState = configuredLiftedStore.getState();
393393
expect(liftedStoreState.currentStateIndex).toBe(2);
394394

395-
// currentStateIndex should stay at 2 as actions are committed
395+
// currentStateIndex should stay at 2 as actions are committed.
396396
configuredStore.dispatch({ type: 'INCREMENT' });
397397
liftedStoreState = configuredLiftedStore.getState();
398398
currentComputedState = liftedStoreState.computedStates[liftedStoreState.currentStateIndex];

0 commit comments

Comments
 (0)