fix right_sidebar_spec ajax call
This commit is contained in:
parent
7a2a9bb45e
commit
f19330e4fb
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue