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
What did you expect to happen?
Stubs have #returnsThis() and #resolves() functionality but it is not possible to use either to return the Stub's context as a Promise. It would be nice to have a #resolvesThis() function in Stubs. For example, Mongoose's Model#save() method returns the saved Model object on success. Given the following function:
What did you expect to happen?
Stubs have #returnsThis() and #resolves() functionality but it is not possible to use either to return the Stub's context as a Promise. It would be nice to have a #resolvesThis() function in Stubs. For example, Mongoose's Model#save() method returns the saved Model object on success. Given the following function:
It would be nice to test that the saved
user
object actually contains all the info inuserInfo
via:#returnsThis returns the context but not as a promise and #resolves does not allow for returning the Stub context.
The text was updated successfully, but these errors were encountered: