2019-12-14 15:46:43 +01:00
|
|
|
import React from 'react'
|
|
|
|
import { render } from '@testing-library/react'
|
2022-05-12 01:00:19 +02:00
|
|
|
import meta from '../../../.jest/__fixtures__/meta.json'
|
2023-01-29 22:58:19 +01:00
|
|
|
import Networks from './Networks'
|
2019-12-14 15:46:43 +01:00
|
|
|
|
|
|
|
const { author, rss, jsonfeed } = meta.site.siteMetadata
|
|
|
|
const { twitter, github } = author
|
|
|
|
const links = [twitter, github, rss, jsonfeed, 'hello']
|
|
|
|
|
|
|
|
describe('Networks', () => {
|
|
|
|
it('renders correctly', () => {
|
|
|
|
const { container } = render(<Networks links={links} />)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
|
|
|
})
|