const sinon = require('sinon'); const assert = require('assert'); const myObject = { myMethod: function(arg1, arg2) { // do something } }; sinon.spy(myObject, 'myMethod'); // Call code that should not call myMethod with arguments (1,2) // ... assert.neverCalledWith(myObject.myMethod, 1, 2);In the above example, we create a spy on `myObject.myMethod` using sinon's `spy` function. This allows us to track when the method is called, and with what arguments. We then call some code that should not be calling this method with arguments (1, 2). Finally, we use `assert.neverCalledWith` to ensure that the spy was never called with those arguments. The `assert.neverCalledWith` method is part of the `sinon-chai` library, which is an extension for the popular Chai assertion library. In order to use it, we need to import both `sinon` and `assert` from the Sinon library, as well as `assert` from the `chai` library. In addition, we need to install `sinon-chai` as a separate package.