import { describe, expect, it } from '@jest/globals'; import { render, screen } from '../../../../tests/utils'; import { getFormattedDate } from '../../../utils/helpers'; import { Meta } from './meta'; const data = { publication: { date: '2022-04-09' }, thematics: [ Category 1 , Category 2 , ], }; describe('Meta', () => { it('format a date string', () => { render(); expect( screen.getByText(getFormattedDate(data.publication.date)) ).toBeInTheDocument(); }); });