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

Testing: Provide simple mocking #16

Open
alex3683 opened this issue Aug 7, 2017 · 0 comments
Open

Testing: Provide simple mocking #16

alex3683 opened this issue Aug 7, 2017 · 0 comments

Comments

@alex3683
Copy link
Contributor

alex3683 commented Aug 7, 2017

For anyone using the hal-http-client there should be a convenient way to mock responses for requests in a widget spec. As a basis an existing fetch-mock library could be used.
An important feature would be the possibility to wait for a certain request to have been made. The fetch-mock mentioned above allows for naming mocked requests to allow for inspection later. This could also be used to allow for waiting for a given request. Currently some tests need "random" setTimeouts instead to wait for completion ....

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