test('This function completes successfully', function(done) {
functionToTest (88_888_888, 5, jun23)
.then((result) => {
//assert here
done();
})
.catch((function(error) {
//...
done(); //Just call 'done' in case of error, it will stop the test running and display the error
});
})
[ ] ASYNC AWAIT
async function() {
const actual = await promiseFunction();
console.log(response);
}