mirror of https://github.com/kremalicious/blog.git
17 lines
500 B
TypeScript
17 lines
500 B
TypeScript
|
import React from 'react'
|
||
|
import { render } from '@testing-library/react'
|
||
|
import Networks from './Networks'
|
||
|
|
||
|
import meta from '../../../jest/__fixtures__/meta.json'
|
||
|
|
||
|
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()
|
||
|
})
|
||
|
})
|