DEV Community

Discussion on: An async/await gotcha

Collapse
 
strahinjalak profile image
Strahinja Laktovic • Edited

One could always make new Promise and resolve inside the function that should be 'wrapped as async', and mock it as such. I don't event think setTimeout is necessary. I look forward to hearing test case elaboration as well. :)