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

Doesn't seem to support HTTP mocking when using the HTTP builder library #5

Closed
kingsleyh opened this issue Jun 8, 2017 · 6 comments

Comments

@kingsleyh
Copy link

HTTP mocking doesn't seem to work with the http builder library - https://github.com/lukewestby/elm-http-builder

I'm investigating and if I fix it will submit a pull request. But if you can shed any light on the issue please let me know

@kingsleyh
Copy link
Author

actually in a simple test it does work - continuing to investigate.

@kingsleyh
Copy link
Author

Ok well the problem seem to be that when a Cmd Msg is supplied to the initCmd the mocking works - but if supplying a Cmd Msg that is made via Http.send the mocks do not catch the request.

@gdotdesign
Copy link
Owner

Interesting. Can you provide a sample somewhere so I could check it out?
Thanks.

@kingsleyh
Copy link
Author

kingsleyh commented Jun 8, 2017 via email

@kingsleyh
Copy link
Author

Ok so we fixed all the issues we encountered and now have something working that allows an init message to be set that will run on each test - either a HTTP request or any other Cmd message.

So we will send another pull request today and you can ignore the previous pull request (#4)

@kingsleyh
Copy link
Author

closing this now

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