Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 92e932c

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(datepicker): occasionally failing test
This fixes a test in the datepicker that would fail if the current date is the 30th or 31st, because the calendar month being tested is February. Closes #8596
1 parent c9158c8 commit 92e932c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/datepicker/calendar.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ describe('md-calendar', function() {
341341
applyDateChange();
342342

343343
var otherScope = $rootScope.$new();
344+
var day = 15;
344345

345346
otherScope.myDate = controller.today;
346347
var otherNgElement = createElement(otherScope);
347348

348349
var monthElement = element.querySelector('.md-calendar-month');
349-
var day = controller.today.getDate();
350350
var dateElement = findDateElement(monthElement, day);
351351

352352
var otherMonthElement = otherNgElement[0].querySelector('.md-calendar-month');

0 commit comments

Comments
 (0)