PSPDFKit-labs / bypass

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
https://hex.pm/packages/bypass
MIT License
964 stars 111 forks source link

Allow the user to specify the expected number of calls #140

Open jeremyowensboggs opened 8 months ago

jeremyowensboggs commented 8 months ago

Allows the user to specify the number of calls to expect. Verify will fail if the number of actual calls is different than the number of expected calls.

Added expect/3 and expect/5 to setup a called exactly n times expectation.