From ab04d1206ba8c1e261efe86d1f014a18dd2ee989 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sun, 1 Jun 2014 18:15:57 -0700 Subject: [PATCH] simplify json-feed jQuery ajax test. make it work in IE8 --- tests/automated/events-json-feed.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/automated/events-json-feed.js b/tests/automated/events-json-feed.js index 2ed7605..86e056a 100644 --- a/tests/automated/events-json-feed.js +++ b/tests/automated/events-json-feed.js @@ -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); });