I have this in one of my tests:
mock(stockReadOnlyRepository).fetch.calledWith(objectContainsValue({id: 'teststock1id'})).mockResolvedValue([{
id: "teststock1id",
symbol: "teststock1symbol",
name: "teststock1name",
value: 956.9,
volume: 6000,
open: 898.5,
close: 967.2
}])
mock(stockReadOnlyRepository).fetch.calledWith({}, {lowestValue: true}).mockResolvedValue([{
id: "teststock2id",
symbol: "teststock2symbol",
name: "teststock2name",
value: 900,
volume: 6000,
open: 898.5,
close: 967.2
}])
The second one works but the first just returns an undefined when i call that function with those parameters. How do I specify the {id: 'teststock1id'} object as the parameters for the first mock?

