Skip to content

Commit

Permalink
Best to start onUpdate from the same counter as calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fiss committed Sep 18, 2017
1 parent 9ef1559 commit b481983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.spec.js
Expand Up @@ -97,7 +97,7 @@ describe('force update', () => {
expect(calls).toEqual(6);
deepForceUpdate(instance, () => false, () => calls++);
expect(calls).toEqual(6);
let onUpdateCalls = 0;
let onUpdateCalls = 6;
deepForceUpdate(instance, () => true, () => onUpdateCalls++);
expect(onUpdateCalls).toBeGreaterThan(calls);
}
Expand Down

0 comments on commit b481983

Please sign in to comment.