import React from 'react';
import moment from 'moment';
import { shallow } from '../test-utils';
import { Calendar } from '../../src/DatePicker/Calendar';

describe('Calendar', () => {
  let component;

  beforeEach(() => {
    component = shallow(<Calendar classes={{}} date={moment('01-01-2017')} />);
  });

  it('Should renders', () => {
    // console.log(component.debug());
    expect(component).toBeTruthy();
  });
});

@@ -65,16 +65,28 @@
  shallow
+, utilsToUse
  %7D from 
@@ -428,12 +428,472 @@
 ;%0A  %7D);%0A%7D);%0A
+%0Adescribe('Calendar - disabled selected date on mount', () =%3E %7B%0A  let component;%0A%0A  beforeEach(() =%3E %7B%0A    component = shallow(%3CCalendar%0A      classes=%7B%7B%7D%7D%0A      date=%7ButilsToUse.date('01-01-2017')%7D%0A      minDate=%2201-01-2018%22%0A      onChange=%7Bjest.fn()%7D%0A    /%3E);%0A  %7D);%0A%0A  it('Should dispatch onDateSelect on mount', () =%3E %7B%0A    const %7B onChange %7D = component.instance().props;%0A    expect(onChange).toHaveBeenCalledWith(utilsToUse.date('01-01-2018'));%0A  %7D);%0A%7D);%0A

Add unit tests for Calendar.jsx component