ng-apimock icon indicating copy to clipboard operation
ng-apimock copied to clipboard

Expectations

Open danpowell88 opened this issue 7 years ago • 4 comments

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.

danpowell88 avatar Apr 20 '18 00:04 danpowell88

Hi @danpowell88

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

wswebcreation avatar Apr 20 '18 03:04 wswebcreation

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

danpowell88 avatar Apr 20 '18 03:04 danpowell88

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?

wswebcreation avatar Apr 20 '18 04:04 wswebcreation

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

lucasbento avatar Jun 12 '18 07:06 lucasbento