mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-31 12:20:08 +08:00
simplify json-feed jQuery ajax test. make it work in IE8
This commit is contained in:
@@ -91,16 +91,13 @@ describe('events as a json feed', function() {
|
||||
data: {
|
||||
customParam: 'yes'
|
||||
},
|
||||
success: function() { }
|
||||
success: function() {
|
||||
var request = $.mockjax.mockedAjaxCalls()[0];
|
||||
expect(request.data.customParam).toMatch('yes');
|
||||
done();
|
||||
}
|
||||
};
|
||||
spyOn(eventSource, 'success').and.callThrough();
|
||||
options.eventSources = [ eventSource ];
|
||||
options.eventAfterAllRender = function() {
|
||||
var request = $.mockjax.mockedAjaxCalls()[0];
|
||||
expect(request.data.customParam).toMatch('yes');
|
||||
expect(eventSource.success.calls.count()).toEqual(1);
|
||||
done();
|
||||
};
|
||||
$('#cal').fullCalendar(options);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user