Fake setTimeout and friends (collectively known as "timers"). Useful in your JavaScript tests. Extracted from Sinon.JS
BSD 3-Clause "New" or "Revised" License
797
stars
104
forks
source link
Support util.promisify on installed functions #347
Closed
kevinoid closed 3 years ago
What did you expect to happen?
util.promisify
would work onsetTimeout
installed by FakeTimers as it does on the globalsetTimeout
.What actually happens
The Promise returned by the installed
setTimeout
is never resolved because the installedsetTimeout
does not have apromisify.custom
symbol property.How to reproduce
prints
Discussion
This issue was noted by @joshua-barnett in https://github.com/sinonjs/fake-timers/pull/292#issuecomment-744443087. I'm opening this issue to track it.