I'm using sinon / chai and some other plugins, I can test promises and their results, etc, but how can I ensure that a function returns a promsie?
I realize that if other tests pass (eg. when you run the rest with return or await and get expected result) it means it is a promise, but is there something along the lines of:
expect(foo).to.return.a('promise')
EDIT: Unfortunately the suggested post did NOT answer my question with unit testing, but I did figure out the answer:
let result = foo();
expect(result).to.be.a('promise');