import React from 'react'
import { render } from '@testing-library/react-native'
import { MessagesContainer } from '..'
import { DEFAULT_TEST_MESSAGE } from './data'
it('should render without crashing', () => {
// Just verify it renders without throwing
expect(() => render(
)).not.toThrow()
})
it('should render with multiple messages', () => {
const messages = [
{ ...DEFAULT_TEST_MESSAGE, _id: 'test1' },
{ ...DEFAULT_TEST_MESSAGE, _id: 'test2' },
]
expect(() => render(
)).not.toThrow()
})
it('should render with empty messages', () => {
expect(() => render(
)).not.toThrow()
})