mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
fix problem where calendar dayNames setting wasnt being tested
This commit is contained in:
@@ -77,12 +77,12 @@ describe('day names', function() {
|
||||
|
||||
dayClasses.forEach(function(cls, idx, classes) {
|
||||
it('should be ' + weekdays[idx], function() {
|
||||
settings.dayNames = moment.weekdays();
|
||||
settings.dayNames = [].slice.call(weekdays); // copy. in case there is a mutation
|
||||
settings.now = moment(referenceDate).add('days', idx);
|
||||
|
||||
$('#cal').fullCalendar(settings);
|
||||
|
||||
expect($('.fc-view thead ' + cls)).toHaveText(moment.weekdays()[idx]);
|
||||
expect($('.fc-view thead ' + cls)).toHaveText(weekdays[idx]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user