We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, the API is exclusively synchronous. An asynchronous API would be easier when waiting for a particular state in tests.
await spy.isCalledAsync(methodName, [count], [timeout]);
await spy.isCalledWithAsync(methodName, argList, [options]);
argList
[arg_1, ..., arg_n]
[[arg_1_1, ..., arg_1_n], ..., [arg_m_1, ..., arg_m_n]]
options
orderInsensitive
true
isSet
index
timeout
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the API is exclusively synchronous. An asynchronous API would be easier when waiting for a particular state in tests.
await spy.isCalledAsync(methodName, [count], [timeout]);
await spy.isCalledWithAsync(methodName, argList, [options]);
argList
can be either[arg_1, ..., arg_n]
for a single call or[[arg_1_1, ..., arg_1_n], ..., [arg_m_1, ..., arg_m_n]]
for multiple calls.options
can have the following properties:orderInsensitive
: when set totrue
then the order of theargList
does not matter.isSet
: when set totrue
, then theargList
is considered as a set.index
: when set, then theargList
is matched against a particular invocation of the method, indicated by the given index.timeout
: if the assertion fails, when it cannot be resolved under the given timeout.The text was updated successfully, but these errors were encountered: