bats-mock
bats-mock copied to clipboard
add an info about using wildcard params and functions in the README
Just add an "Advanced usage" section in the README with infos about:
- the ability to use a wildcard as stub arguments:
stub date '* : echo "my return"'
- the ability to use a function in the stub to evaluate the return:
stub date '-r 222 : my_function'