fix problem where calendar dayNames setting wasnt being tested

This commit is contained in:
Adam Shaw
2014-05-24 14:15:45 -07:00
parent e4b3bc8d4f
commit d55ff57b3e
+2 -2
View File
@@ -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]);
});
});
});