We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey @lathonez ,
I have a doubt on a line you wrote in the spec.
spyOn(instance['clickerService'], 'newClicker').and.callThrough();
Here why should we use callThrough (which will trigger the actual service instead of the mock.) ? Why the mock service method is not used here?
The text was updated successfully, but these errors were encountered:
The mock is provided at compile time:
https://github.com/lathonez/clicker/blob/master/src/components/clickerForm/clickerForm.spec.ts#L11
and
https://github.com/lathonez/clicker/blob/master/src/test.ts#L63.
So no the actual service isn't in use at all.
Sorry, something went wrong.
Thanks for the explanation. Really appreciate it. 👍
#191
No branches or pull requests
Hey @lathonez ,
I have a doubt on a line you wrote in the spec.
Here why should we use callThrough (which will trigger the actual service instead of the mock.) ? Why the mock service method is not used here?
The text was updated successfully, but these errors were encountered: