1
0
mirror of https://github.com/kremalicious/ipfs.git synced 2024-11-22 09:47:13 +01:00
ipfs/test/Loader.test.tsx

11 lines
308 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'
2021-09-13 23:55:29 +02:00
import Loader from '../src/components/Loader'
2019-12-08 17:27:44 +01:00
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
})
})