mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-14 17:37:54 -05:00
fix two parse tests to actually have something to parse
This commit is contained in:
@@ -410,7 +410,7 @@ $(document).ready(function() {
|
||||
};
|
||||
collection.url = '/test';
|
||||
collection.fetch();
|
||||
this.syncArgs.options.success();
|
||||
this.syncArgs.options.success({foo: 'bar'});
|
||||
equal(counter, 1);
|
||||
});
|
||||
|
||||
@@ -1011,7 +1011,7 @@ $(document).ready(function() {
|
||||
}));
|
||||
var ajax = Backbone.ajax;
|
||||
Backbone.ajax = function (params) {
|
||||
_.defer(params.success);
|
||||
_.defer(params.success, {foo: 'bar'});
|
||||
return {someHeader: 'headerValue'};
|
||||
};
|
||||
collection.fetch({
|
||||
|
||||
Reference in New Issue
Block a user