2019-09-16 14:53:19 +02:00
|
|
|
import React from 'react'
|
2019-09-16 17:07:07 +02:00
|
|
|
import { render } from '@testing-library/react'
|
2019-09-16 14:53:19 +02:00
|
|
|
import App from './App'
|
2019-09-16 11:28:08 +02:00
|
|
|
|
2019-09-16 17:07:07 +02:00
|
|
|
describe('App', () => {
|
|
|
|
it('should be able to run tests', () => {
|
|
|
|
expect(1 + 2).toEqual(3)
|
|
|
|
})
|
|
|
|
|
|
|
|
it('renders without crashing', async () => {
|
|
|
|
const { container } = render(<App />)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
2019-09-16 14:53:19 +02:00
|
|
|
})
|