You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running the toHaveReceivedNthCommand you have to take the other commands into account.
Example:
PutItemCommand
QueryCommand
TransactWriteItemsCommand
PutItemCommand
I expect that toHaveReceivedNthCommand(2, PutItemCommand) checks the second occurrence of the PutItemCommand not the second occurrence of all the calls, which is in this case the QueryCommand.
Solution
Implement a new matcher toHaveReceivedNthSpecificCommandWith that only checks the call occurrence for the specified command.
The text was updated successfully, but these errors were encountered:
Problem
While running the
toHaveReceivedNthCommand
you have to take the other commands into account.Example:
I expect that
toHaveReceivedNthCommand(2, PutItemCommand)
checks the second occurrence of thePutItemCommand
not the second occurrence of all the calls, which is in this case theQueryCommand
.Solution
Implement a new matcher
toHaveReceivedNthSpecificCommandWith
that only checks the call occurrence for the specified command.The text was updated successfully, but these errors were encountered: