sinon chaining method code example
Example: sinon chaining method
mock.expects('find')
.returns({ lean: sinon.stub().resolves(productResults) })
mock.expects('find')
.returns({ lean: sinon.stub().returns(productResults) })
mock.expects('find')
.returns({ lean: sinon.stub().resolves(productResults) })
mock.expects('find')
.returns({ lean: sinon.stub().returns(productResults) })