mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-06-17 18:03:22 +02:00
22 lines
524 B
JavaScript
22 lines
524 B
JavaScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import { useStaticQuery } from 'gatsby'
|
|
import Footer from './Footer'
|
|
import data from '../../../jest/__fixtures__/meta.json'
|
|
|
|
describe('Footer', () => {
|
|
beforeEach(() => {
|
|
useStaticQuery.mockImplementation(() => {
|
|
return {
|
|
...data,
|
|
portfolioJson: { bugs: '' }
|
|
}
|
|
})
|
|
})
|
|
|
|
it('renders correctly', () => {
|
|
const { container } = render(<Footer />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|