import React from 'react';
import { fireEvent, render } from 'react-native-testing-library';
import renderer from 'react-test-renderer';
import { ThemeProvider } from 'styled-components/native';
import Touchable from '..';
import { theme } from '../../../test/helpers';
describe('<Touchable />', () => {
    it('should render Touchable', () => {
        const wrapper = renderer.create(<ThemeProvider theme={theme}>
        <Touchable id="testing" accessibility=""/>
      </ThemeProvider>);
        expect(wrapper.toJSON()).toMatchSnapshot();
    });
    it('should fire onPress from Touchable', () => {
        const onPressEvent = jest.fn();
        const { getByTestId } = render(<ThemeProvider theme={theme}>
        <Touchable id="testing" accessibility="" onPress={onPressEvent}/>
      </ThemeProvider>);
        const component = getByTestId('testing');
        fireEvent.press(component);
        expect(onPressEvent).toHaveBeenCalled();
    });
});
//# sourceMappingURL=Touchable.spec.js.map