2019-12-08 17:27:44 +01:00
|
|
|
import React from 'react'
|
2021-09-12 21:21:18 +02:00
|
|
|
import { render, screen } from '@testing-library/react'
|
2019-12-08 17:27:44 +01:00
|
|
|
import Home from '../pages'
|
|
|
|
|
|
|
|
describe('Home', () => {
|
|
|
|
it('renders without crashing', async () => {
|
2021-09-12 20:57:02 +02:00
|
|
|
render(<Home />)
|
2021-09-12 21:21:18 +02:00
|
|
|
await screen.findAllByTitle('Online', undefined, { timeout: 10000 })
|
|
|
|
expect(screen.getByText('A public IPFS Gateway')).toBeInTheDocument()
|
2019-12-08 17:27:44 +01:00
|
|
|
})
|
|
|
|
})
|