From 7cbac28270df4b87eb191874da23b1ffc744f9aa Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Fri, 13 Jun 2014 14:38:00 -0700 Subject: [PATCH] prove issue 595 is fixed --- tests/automated/events-function.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/automated/events-function.js b/tests/automated/events-function.js index 12506bd..b1cc459 100644 --- a/tests/automated/events-function.js +++ b/tests/automated/events-function.js @@ -118,4 +118,17 @@ describe('events as a function', function() { $('#cal').fullCalendar(options); }); + it('requests the correct dates when days at the start/end of the month are hidden', function(done) { + options.currentView = 'month'; + options.defaultDate = '2013-06-01'; // June 2013 has first day as Saturday, and last as Sunday! + options.weekends = false; + options.weekMode = 'variable'; + options.events = function(start, end, timezone, callback) { + expect(start).toEqualMoment('2013-06-03'); + expect(end).toEqualMoment('2013-06-29'); + done(); + }; + $('#cal').fullCalendar(options); + }); + });