import React from 'react'
import { render } from '@testing-library/react-native'
import { Message } from '..'
import { DEFAULT_TEST_MESSAGE } from './data'
describe('Message component', () => {
it('should render and compare with snapshot', () => {
const { toJSON } = render(
)
expect(toJSON()).toMatchSnapshot()
})
it('should NOT render ', () => {
const { toJSON } = render(
)
expect(toJSON()).toMatchSnapshot()
})
it('should render with Avatar', () => {
const { toJSON } = render(
)
expect(toJSON()).toMatchSnapshot()
})
it('should render null if user has no Avatar', () => {
const { toJSON } = render(
)
expect(toJSON()).toMatchSnapshot()
})
})