mirror of
https://github.com/kremalicious/ipfs.git
synced 2024-11-25 03:10:52 +01:00
15 lines
421 B
TypeScript
15 lines
421 B
TypeScript
import React from 'react'
|
|
import { render, screen } from '@testing-library/react'
|
|
import Home from '../src/pages'
|
|
|
|
describe('Home', () => {
|
|
it('renders without crashing', async () => {
|
|
render(<Home />)
|
|
const online = await screen.findAllByTitle('Online', undefined, {
|
|
timeout: 10000
|
|
})
|
|
expect(screen.getByText('A public IPFS Gateway')).toBeInTheDocument()
|
|
expect(online).toBeDefined()
|
|
})
|
|
})
|