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

Commit

Permalink
fix(datepicker): occasionally failing test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
crisbeto authored and ThomasBurleson committed May 30, 2016
1 parent c9158c8 commit 92e932c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datepicker/calendar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 92e932c

Please sign in to comment.