2016-10-13 23:37:19 +08:00
|
|
|
import React from 'react'
|
|
|
|
import ReactTestUtils from 'react-addons-test-utils'
|
2016-10-18 08:59:33 +08:00
|
|
|
import {NylasCalendar} from 'nylas-component-kit'
|
|
|
|
|
2016-10-13 23:37:19 +08:00
|
|
|
import { now } from './test-utils'
|
|
|
|
import TestDataSource from './test-data-source'
|
|
|
|
import CalendarToggles from '../../../src/components/nylas-calendar/calendar-toggles'
|
|
|
|
|
|
|
|
describe("Nylas Calendar Toggles", function calendarPickerSpec() {
|
|
|
|
beforeEach(() => {
|
|
|
|
this.dataSource = new TestDataSource();
|
|
|
|
this.calendar = ReactTestUtils.renderIntoDocument(
|
|
|
|
<NylasCalendar
|
|
|
|
currentMoment={now()}
|
|
|
|
onCalendarMouseDown={this.onCalendarMouseDown}
|
|
|
|
dataSource={this.dataSource}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
this.toggles = ReactTestUtils.findRenderedComponentWithType(this.calendar, CalendarToggles);
|
|
|
|
});
|
|
|
|
});
|