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

[Documentation request] Interactions with fakeAsync and HttpClientTestingModule #28

Open
GeeWee opened this issue Dec 3, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@GeeWee
Copy link

GeeWee commented Dec 3, 2020

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[X] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

Currently it's not quite easy to figure out how Cashew will behave in tests. What it's interactions are with HttpClientTestingModule, and verifications on this. It is also not clear how it will behave in regards to fakeAsync, tick and their interactions with TTL.

Expected behavior

Some documentation about these interactions would be most helpful in testing code that relies on Cashew.

What is the motivation / use case for changing the behavior?

When testing code using cashew and using HttpClientTestingModule it can be hard to know exactly how to use the primitives such as flush, and how to properly do assertions on the HttpTestingController

@NetanelBasal NetanelBasal added documentation Improvements or additions to documentation good first issue Good for newcomers labels Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants