import * as React from 'react'; import { ReactWrapper } from 'enzyme'; import { Month } from '../../views/Calendar/Month'; import { mount, utilsToUse } from '../test-utils'; import { MonthSelection, MonthSelectionProps } from '../../views/Calendar/MonthSelection'; describe('MonthSelection', () => { let component: ReactWrapper>; beforeEach(() => { component = mount( ); }); it('Should render disabled months before min date and after max date', () => { expect(component.find(Month).map((month) => month.prop('disabled'))).toEqual([ true, true, false, false, false, true, true, true, true, true, true, true, ]); }); });