const sinon = require('sinon'); function myFunction(a, b) { return a * b; } const mySpy = sinon.spy(myFunction); mySpy(2, 3); sinon.assert.calledWithExactly(mySpy, 2, 3); // Returns trueIn this example, we create a spy using sinon on the `myFunction` function. We then call the spy with the arguments `2` and `3`. Finally, we use the sinon assert calledWithExactly method to assert that the spy was called with exactly the arguments `2` and `3`. The sinon library provides a wide range of tools for testing JavaScript code, including spies, stubs, and mocks. Overall, sinon is a powerful and flexible library that is widely used in the JavaScript development community.