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 services documentation unclear #42748
Comments
A simple cheers |
|
It's not. An Observable is returned, which doesn't make it async necessarily. UPDATE heroService.getHeroes().subscribe( // <-- Returns httpClient.get() <-- returns of(expectedHeroes)
heroes => { // <-- expectedHeroes
expect(heroes).toEqual(expectedHeroes, 'expected heroes'); // <-- ????
done(); // <-- Profit
},
done.fail
); Seems to be enough imo :-) cheers |
It is enough. That's how I did it. |
Then if we take the example, and don't care about the heroes but only about the spy call. What should we do and why? I'm a bit confused about this async/not async.
|
So
would be enough. cheers |
Assigned P2 to update this after such a long time. |
In the Testing Services documentation, a reference to the
asyncData
function is made, but the docs don't explain where this function is coming from.The text was updated successfully, but these errors were encountered: