i need to write a test for a function that has a setTimeout() call inside, but i can't find how i should do.
This is the function
setTimeout(() => {
this.loading = false;
$('.pre_loading').fadeTo(1500, 0);
setTimeout(() => {
$('.pre_loading').remove();
}, 400);
}, 3500);
}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment