The function I want to test is asynchronous, This function is present in a class.
Do I need to create a mock/stub to test this function?If yes then how to create one?
delayedAlert(message: string, time: number, cb){
return setTimeout(()=>{
cb(message)},3000)}
//calling this function shows the asynchronous behavior successfully.