I know with sinon.js you can test that a spy was called a certain number of times:
sinon.assert.calledTwice(mySpy.someMethod);
And you can test that a spy was called with certain arguments:
sinon.assert.calledWith(mySpy.someMethod, 1, 2);
But how to you combine them to test that a method was called a specific number of times with specific arguments? Something, theoretically, like this:
sinon.assert.calledTwiceWith(mySpy.someMethod, 1, 2);