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

add $.mockjax.handlers() method #321

Closed
hixus opened this issue Jul 27, 2017 · 2 comments
Closed

add $.mockjax.handlers() method #321

hixus opened this issue Jul 27, 2017 · 2 comments

Comments

@hixus
Copy link

hixus commented Jul 27, 2017

There seems no way to get all mocked handlers. I would like to override single request but in the test level I don't know the indexes of mocked handlers as there are couple helpers that add additional handlers to mockjax.

@jakerella
Copy link
Owner

You're right, there is not an easy way to get all current handlers. But my question would be what are you trying to retrieve them for? You say "override single request", but I'm not sure what that means. I might be able to help you solve that problem without a new feature. Note that there is another issue ( #184 ) to add unique IDs to each handler, which could then allow for querying of handlers and other such things. That has not been done yet.

@jakerella
Copy link
Owner

Resolved by #327

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

2 participants