2020-05-07 08:03:30 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { render } from '@testing-library/react'
|
2020-06-30 19:38:02 +02:00
|
|
|
import Publish from '../../../src/components/pages/Publish'
|
2020-09-02 11:43:15 +02:00
|
|
|
import content from '../../../content/pages/publish.json'
|
2021-02-16 10:27:02 +01:00
|
|
|
import contentAlgo from '../../../content/pages/publishAlgo.json'
|
2020-05-07 08:03:30 +02:00
|
|
|
|
|
|
|
describe('Home', () => {
|
|
|
|
it('renders without crashing', () => {
|
2021-02-16 10:27:02 +01:00
|
|
|
const { container } = render(
|
|
|
|
<Publish content={content} contentAlgoPublish={contentAlgo} />
|
|
|
|
)
|
2020-05-07 08:03:30 +02:00
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
|
|
|
})
|