react-native-calendar-strip
Version:
Easy to use and visually stunning calendar component for React Native
25 lines (18 loc) • 591 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();
});
});