Closed dispix closed 1 year ago
Think that's just an error in the text. I call dispatch
twice which will call clearTimeout
once and then I trigger a cancel action which will trigger clearTimeout
again. Good catch.
I corrected it in my first commit in PR #10
In the test/index.js file, there is a difference between the test description and the actual test. Modifying the test from
calledTwice
tocalledThrice
actually issues an error duringnpm run test
.So is the description falsy or is the test actually wrong ? In the latter case, it may mean something is not working as intended.