I'm using Sinon.js and set the requirement:
mock.expects("myFunc").withArgs("value", "value2", "2");
But then I get the following error:
Error: Unexpected call: myFunc(value, value2, 2)
Expected myFunc(value, value2, 2[, ...]) once (never called)
What does [, ...] mean? How can I get this to work?