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

apply setttings (or maybe fixture middleware) to everything matching the ajax request? #27

Open
justinbmeyer opened this issue Apr 13, 2016 · 0 comments

Comments

@justinbmeyer
Copy link
Contributor

I've thought that maybe if you have multiple fixtures that match an ajax request:

fixture({url: "foo"}, handler)
fixture({method: "get", url: "foo", handler)

Perhaps we could sequence them? It would be very nice to do:

fixture({}, function(req, response, reqHandler, matcher, next){
  setTimeout(next, 2000)
})

as a way of slowing everything up.

One possible problem with this, should we make it possible to remove multiple fixtures at once? Should fixture({},null) remove all fixtures?

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

No branches or pull requests

1 participant