ipfs/src/__tests__/index.test.tsx

12 lines
348 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, waitFor, 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 />)
await waitFor(() => screen.getAllByTitle('Online').length === 2)
expect(screen.getAllByTitle('Online').length).toBe(2)
2019-12-08 17:27:44 +01:00
})
})