diff --git a/src/Month.js b/src/Month.js index d3cda35b60..0cd5943ee1 100644 --- a/src/Month.js +++ b/src/Month.js @@ -29,6 +29,7 @@ export default function Month({
{React.cloneElement(captionElement, captionProps)} ', () => { @@ -159,6 +160,11 @@ describe('', () => { ); expect(wrapper.find('.DayPicker-Day')).to.have.length(42); }); + it('should render weekday labels accounting for locale settings', () => { + const localeUtils = Object.assign({}, LocaleUtils, { getFirstDayOfWeek: () => 1 }); + const wrapper = mount(); + expect(wrapper.find('.DayPicker-Weekday').at(0)).to.have.text('Mo'); + }); }); describe('day modifiers', () => {