import { CallableVerifier } from "https://deno.land/x/rhum@v2.2.0/src/verifiers/callable_verifier.ts";
Methods
Make a user friendly version of the args. This is for display in the
VerificationError
stack trace. For example, the original args ...
[true, false, "hello"]
... becomes ...
true, false, "hello"
The above will ultimately end up in stack trace messages like:
.toBeCalledWith(true, false, "hello")
If we do not do this, then the following stack trace message will show, which is not really clear because the args are in an array and the "hello" string has its quotes missing:
.toBeCalledWith([true, false, hello])
Same as this.argsAsString()
, but add typings to the args. For example:
[true, false, "hello"]
... becomes ...
true<boolean>, false<boolean>, "hello"<string>
Get the arg type in string format for the given arg.
Verify that the number of actual calls matches the number of expected calls.
Verify that the number of expected args is not less than the actual args.
Verify that the number of expected args is not more than the actual args.
Verify that the expected args match the actual args by value and type.
Verify that the no args were used.