1
0
mirror of https://github.com/kremalicious/ipfs.git synced 2024-11-22 01:37:07 +01:00
ipfs/test/index.test.tsx
2021-09-14 00:04:38 +02:00

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()
})
})