beforeEach(function() { sinon.stub(jsonHttp, 'getJson'); jsonHttp.getJson.yields(null, { title: 'film title' }); });