ipfs/src/__tests__/Loader.test.tsx

11 lines
304 B
TypeScript
Raw Normal View History

2019-12-08 17:27:44 +01:00
import React from 'react'
2021-09-12 20:57:02 +02:00
import { render, screen } from '@testing-library/react'
2019-12-08 17:27:44 +01:00
import Loader from '../components/Loader'
describe('Loader', () => {
2021-09-12 20:57:02 +02:00
it('renders without crashing', async () => {
render(<Loader message="Hello" />)
expect(screen.getByText('Hello')).toBeInTheDocument()
2019-12-08 17:27:44 +01:00
})
})