Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
14 lines
512 B
TypeScript
14 lines
512 B
TypeScript
import React from 'react'
|
|
import { render, screen } from '@testing-library/react'
|
|
import EmptyElement from './empty-element'
|
|
|
|
describe('EmptyElement', () => {
|
|
it('should render the empty state copy and supporting icon', () => {
|
|
const { container } = render(<EmptyElement />)
|
|
|
|
expect(screen.getByText('appAnnotation.noData.title')).toBeInTheDocument()
|
|
expect(screen.getByText('appAnnotation.noData.description')).toBeInTheDocument()
|
|
expect(container.querySelector('svg')).not.toBeNull()
|
|
})
|
|
})
|