You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be open to a PR that adds a mongoose-style exec method?
Usage would look like this:
supertest(app).get('/someRoute').expect(200)// wraps supertest.end in a promise.exec().then(function(){// success}).catch(function(error){// failure});
The text was updated successfully, but these errors were encountered:
If the exec/thunk makes better sense for the use-case, it may be better to follow the pattern of extending this package externally rather than changing the API here. This library has mirrored supertest's continuation-passing API fairly closely (in fact, improving agent support in 'recent' supertest versions has largely mooted this library's raison d'etre), and departing from it may complicate future compatibility changes.
That being said, I'd be very happy to see this extension working in some form!
Would you be open to a PR that adds a mongoose-style
exec
method?Usage would look like this:
The text was updated successfully, but these errors were encountered: