react-native-calendar-strip-without-selector
Version:
React Native Calendar customised to exclude selectors in original react-native-calendar-strip by Bogdan Begovic
25 lines (18 loc) • 567 B
JavaScript
import React from "react";
import { configure, shallow } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import moment from "moment";
import CalendarScroller from "../src/Scroller";
configure({ adapter: new Adapter() });
const today = moment();
describe("CalendarScroller Component", () => {
it("should render without issues", () => {
const component = shallow(
<CalendarScroller
minDate={today.clone().subtract(1, "w")}
maxDate={today.clone().add(1, "w")}
/>
);
expect(component).toBeTruthy();
});
});