import 'react-native'
import React from 'react'
import renderer from 'react-test-renderer'
import { Message } from '../GiftedChat'
describe('Message component', () => {
it('should render and compare with snapshot', () => {
const tree = renderer
.create(
)
.toJSON()
expect(tree).toMatchSnapshot()
})
it('should NOT render ', () => {
const tree = renderer
.create()
.toJSON()
expect(tree).toMatchSnapshot()
})
it('should render with Avatar', () => {
const tree = renderer
.create(
)
.toJSON()
expect(tree).toMatchSnapshot()
})
it('should render null if user has no Avatar', () => {
const tree = renderer
.create(
)
.toJSON()
expect(tree).toMatchSnapshot()
})
})