Is there are way to force mocha to require a return value from tests? When testing Promises i do it like:
it("some test", () => {
return someFunctionThatReturnsAPromise()
.then(result => {
assert.ok(result)
// ...
})
})
and everything passes/fails as it should whether or not the Promise is resolved or rejected. But if I forget to the "return" (which I do A LOT), then the test passes even if the Promise is rejected.
NOTE: I'm using npm-current mocha with chai-assert.