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

Commit b60bd35

Browse files
committed
fix(calendar): fix broken unit tests
1 parent b3a03f3 commit b60bd35

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/components/datepicker/calendar.spec.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,4 @@ describe('md-calendar', function() {
287287
expect(escapeHandler).toHaveBeenCalled();
288288
});
289289
});
290-
291-
describe('a11y announcements', function() {
292-
it('should announce date changes in the aria-live region', function() {
293-
pageScope.myDate = new Date(2015, MAY, 20);
294-
applyDateChange();
295-
var selectedDate = element.querySelector('.md-calendar-selected-date');
296-
selectedDate.focus();
297-
298-
dispatchKeyEvent(keyCodes.LEFT_ARROW);
299-
expect(controller.ariaLiveElement.textContent).toBe('Tuesday 19');
300-
});
301-
});
302290
});

src/components/datepicker/dateLocaleProvider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
var defaultMsgCalendar = 'Calendar';
191191
var defaultMsgOpenCalendar = 'Open calendar';
192192

193-
var service = Object.freeze({
193+
var service = {
194194
months: this.months || $locale.DATETIME_FORMATS.MONTH,
195195
shortMonths: this.shortMonths || $locale.DATETIME_FORMATS.SHORTMONTH,
196196
days: this.days || $locale.DATETIME_FORMATS.DAY,
@@ -203,7 +203,7 @@
203203
longDateFormatter: this.longDateFormatter || defaultLongDateFormatter,
204204
msgCalendar: this.msgCalendar || defaultMsgCalendar,
205205
msgOpenCalendar: this.msgOpenCalendar || defaultMsgOpenCalendar
206-
});
206+
};
207207

208208
return service;
209209
};

0 commit comments

Comments
 (0)