From d55ff57b3ebdd5c67c3ea79dbfc8209387348ad0 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sat, 24 May 2014 14:15:45 -0700 Subject: [PATCH] fix problem where calendar dayNames setting wasnt being tested --- tests/automated/dayNames.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/automated/dayNames.js b/tests/automated/dayNames.js index 20078e3..1793931 100644 --- a/tests/automated/dayNames.js +++ b/tests/automated/dayNames.js @@ -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]); }); }); });