mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-08-11 11:18:47 +08:00
prove issue 595 is fixed
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user