mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-03-27 15:55:55 +00:00
17 lines
435 B
TypeScript
17 lines
435 B
TypeScript
import {
|
|
describe,
|
|
expect,
|
|
test
|
|
} from 'vitest';
|
|
import { render } from '@testing-library/react'
|
|
import {
|
|
ErrorText
|
|
} from './ErrorText'
|
|
|
|
|
|
describe('ErrorText', () => {
|
|
test('it renders with the text', () => {
|
|
const { queryByTestId } = render(<ErrorText data-testid="test-id">An Error has occured!</ErrorText>)
|
|
expect(queryByTestId('test-id')?.textContent).toEqual('An Error has occured!')
|
|
})
|
|
}) |