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

mocking using micropilot #7

Open
gregglind opened this issue Feb 14, 2013 · 2 comments
Open

mocking using micropilot #7

gregglind opened this issue Feb 14, 2013 · 2 comments

Comments

@gregglind
Copy link
Owner

Could happen at lots of layers....

  1. ez_upload gets 'do: false'
  2. willrecord = false

@bwinton ideas on this welcome, if you have use cases / nervousness.

@bwinton
Copy link

bwinton commented Feb 15, 2013

I'm afraid I don't have a lot of ideas yet, but if I ever get around to testing my stuff, I'll be sure to let you know. ;)

I will say that it would be nice to have it as a fairly global setting, so that I don't have to change the code I'm testing when I test it, if that makes sense…

@gregglind
Copy link
Owner Author

@bwinton

For an example how to mock the server end, see: https://github.com/gregglind/micropilot/blob/v0.6/test/test-micropilot-upload.js .

upload was the only unsafe part of micropilot operations, and I think this solves it. How visible does this need to be? Should there be a 'micropilot.fakeServer' or something?

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