supertest icon indicating copy to clipboard operation
supertest copied to clipboard

Update promise example to work with Mocha 3.0.0 and newer

Open jmccure opened this issue 3 years ago • 0 comments

This example fails with Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

On mochajs.org: In Mocha v3.0.0 and newer, returning a Promise and calling done() will result in an exception, as this is generally a mistake

jmccure avatar Apr 22 '22 06:04 jmccure