The basic behavior of both is the same; these are functions that can remember their calls. So for both of you, you can understand how often they were called with the arguments of the witch. Sinon has a much wider API for what you can check on spyware, and it has an API for replacing functions in objects with spyware.
source share