import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } 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(
rtlScreen.getByText(getFormattedDate(data.publication.date))
).toBeInTheDocument();
});
});