import React from 'react';
import { shallow } from 'enzyme';
import { Text } from 'react-native';
import GlobalAlert from './';
import configureMockStore from 'redux-mock-store';
import { Provider } from 'react-redux';
const mockStore = configureMockStore();
const initialState = {
alert: { isVisible: true, autodismiss: 300, children: {'Lol'} },
};
const store = mockStore(initialState);
describe('GlobalAlert', () => {
it('should render correctly', () => {
const wrapper = shallow(
,
);
expect(wrapper.dive()).toMatchSnapshot();
});
});