I'm writting a unit test and I'm mocking an an object (client) which has a _request method which expects an object and a callback function. The object param has a couple of properties with random values:
var clientMock = sandbox.mock(client); // client is defined up somewhere
clientMock
.expects('_request')
.withArgs({
method: 'POST',
form: {
commands: [{
type: "item_add",
temp_id: '???', // <== This is random value
uuid: '???', // <== Another random value
args: { ... }
}]
}
}, sinon.match.func);
How can I set a test for that?
Or how can I ignore those specific properties and test the others?
Thanks.