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

Expectations #49

Open
danpowell88 opened this issue Apr 20, 2018 · 4 comments
Open

Expectations #49

danpowell88 opened this issue Apr 20, 2018 · 4 comments
Labels

Comments

@danpowell88
Copy link

It would be quite handy to be able to verify the mock was called with certain parameters or certain endpoints were hit, I can't currrently see a way to provide this.

@wswebcreation
Copy link
Collaborator

Hi @danpowell88

Isn't this more like a unit test of the source code instead of testing this in ng-apimock?

@danpowell88
Copy link
Author

Yeah I'd think mostly unit testing would cover a lot of it but it is handy in some circumstances to be able to check that the api was called.

nock does it but it doesn't have any kind of nice angular support from what i could tell

https://github.com/node-nock/nock

@wswebcreation
Copy link
Collaborator

Tnx for your answer. ng-apimock doesn't have a prebuild assertion in it, but it could be a feature. @mdasberg , what do you think about that?

@lucasbento
Copy link

This would be a really good feature, also looking forward for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants