1
0
Fork 0
blog/src/components/atoms/Exif.test.tsx

25 lines
590 B
TypeScript
Raw Normal View History

2019-05-02 21:11:52 +02:00
import React from 'react'
2019-10-13 00:07:02 +02:00
import { render } from '@testing-library/react'
2019-05-02 21:11:52 +02:00
import Exif from './Exif'
const exif: Partial<Queries.ImageExif> = {
2019-11-04 19:38:02 +01:00
formatted: {
iso: '500',
model: 'Canon',
fstop: '7.2',
shutterspeed: '200',
focalLength: '200',
lensModel: 'Hello',
exposure: '200',
gps: { latitude: 41.89007222222222, longitude: 12.491516666666666 }
2019-11-04 19:38:02 +01:00
}
2019-05-02 21:11:52 +02:00
}
describe('Exif', () => {
2019-10-13 00:07:02 +02:00
it('renders without crashing', () => {
const { container } = render(<Exif exif={exif as Queries.ImageExif} />)
2019-10-13 00:07:02 +02:00
expect(container.firstChild).toBeInTheDocument()
})
2019-05-02 21:11:52 +02:00
})