diff --git a/src/components/datepicker/calendar.spec.js b/src/components/datepicker/calendar.spec.js index ed7fd6d4183..6b9d967b324 100644 --- a/src/components/datepicker/calendar.spec.js +++ b/src/components/datepicker/calendar.spec.js @@ -341,12 +341,12 @@ describe('md-calendar', function() { applyDateChange(); var otherScope = $rootScope.$new(); + var day = 15; otherScope.myDate = controller.today; var otherNgElement = createElement(otherScope); var monthElement = element.querySelector('.md-calendar-month'); - var day = controller.today.getDate(); var dateElement = findDateElement(monthElement, day); var otherMonthElement = otherNgElement[0].querySelector('.md-calendar-month');