ts-mockito icon indicating copy to clipboard operation
ts-mockito copied to clipboard

Feature request: fail when stub is called with arguments not maching any configured call.

Open gpg0 opened this issue 5 years ago • 0 comments

Currently, when I call a stub instance passing parameters which do not match any previously configured call, that call returns null. It would be very useful if such a call would throw an error such as UnexpectedStubCall with details about the arguments mismatch.

This would be a breaking change, so it would probably need to be configured or used through a slightly different API.

What do you think about this?

gpg0 avatar Sep 04 '19 19:09 gpg0