fix right_sidebar_spec ajax call

This commit is contained in:
Mike Greiling 2017-01-03 16:38:53 -06:00
parent 7a2a9bb45e
commit f19330e4fb

View file

@ -65,9 +65,10 @@
});
it('should broadcast todo:toggle event when add todo clicked', function() {
var todos = getJSONFixture('todos.json');
spyOn(jQuery, 'ajax').and.callFake(function() {
var d = $.Deferred();
var response = getJSONFixture('todos.json');
var response = todos;
d.resolve(response);
return d.promise();
});