Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: 'to yield exchanges [satisfying]' #18

Open
msiebuhr opened this issue Sep 13, 2017 · 1 comment
Open

Suggestion: 'to yield exchanges [satisfying]' #18

msiebuhr opened this issue Sep 13, 2017 · 1 comment

Comments

@msiebuhr
Copy link

msiebuhr commented Sep 13, 2017

After getting into testing some non-idempodent flows I ended up missing something like this:

expect(foo, 'to yield exchanges satisfying', [{
    request: {...},
    response: {...}
}, {
    request: {...},
    response: {...}
}]);

Basically short-hand for

expect(foo, 'to yield exchange satisfying', {...})
    .then(function () {
         return expect(foo, 'to yield excchange satisfying', {...});
     });
@papandreou
Copy link
Member

Certainly doable, haven't needed it much myself, though. PR welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants