import {shallow} from "enzyme"; import React from "react"; import {ScrollView} from "react-native"; import sinon from "sinon"; import {PullToRefreshProps} from "../PullToRefreshProps"; import {PullToRefreshView} from "../PullToRefreshView.android"; describe("PullToRefreshView android spec", () => { it("App show PullToRefreshView android", () => { const stub = sinon.stub(); const props: PullToRefreshProps = { isRefreshing: false, onRefresh: stub, contentComponent: , pullAnimHeight: 70, pullAnimYValues: {from: -50, to: 10}, }; const wrapper = shallow(); expect(wrapper).toMatchSnapshot(); }); });