I get this now. I've fixed this by using sinon.spy.returnValues (which I've never used before, so I missed it). Thanks!