11 lines
311 B
TypeScript
11 lines
311 B
TypeScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import Spinner from '../components/Spinner'
|
|
|
|
describe('Spinner', () => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(<Spinner message="Hello" />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|