import 'react-native';
import React from 'react';
import RoomItem from '../app/presentation/RoomItem';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
jest.mock('react-native-img-cache', () => { return { CachedImage: 'View' } });
it('renders correctly', () => {
expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render unread', () => {
expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render unread +999', () => {
expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render no icon', () => {
expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render private group', () => {
expect(renderer.create( ).toJSON()).toMatchSnapshot();
});
it('render channel', () => {
expect(renderer.create().toJSON()).toMatchSnapshot();
});