import { latestFromSection } from '../fixtures/fixtures'; import { render } from '@testing-library/react'; import React from 'react'; import { LatestFromSection } from '../LatestFromSection'; describe('', () => { beforeEach(() => { global.Intl = { DateTimeFormat: () => ({ // @ts-ignore resolvedOptions: () => ({ timeZone: 'Europe/London' }) }) }; }); it('renders ', () => { const { asFragment } = render( ); expect(asFragment()).toMatchSnapshot(); }); it('no data ', () => { const { asFragment } = render( ); expect(asFragment()).toMatchSnapshot(); }); });