status/src/components/Spinner.test.tsx

11 lines
299 B
TypeScript
Raw Normal View History

2019-09-16 14:53:19 +02:00
import React from 'react'
import { render } from '@testing-library/react'
2019-12-12 20:48:00 +01:00
import Spinner from './Spinner'
2019-09-16 11:28:08 +02:00
2019-12-07 23:02:18 +01:00
describe('Spinner', () => {
2019-09-16 19:01:33 +02:00
it('renders without crashing', () => {
2019-12-07 23:02:18 +01:00
const { container } = render(<Spinner message="Hello" />)
expect(container.firstChild).toBeInTheDocument()
})
2019-09-16 14:53:19 +02:00
})