import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '../../../../tests/utils';
import { Icon } from '../images';
import { Copyright } from './copyright';
const dates = {
start: '2012',
end: '2022',
};
const iconHeading = 'CC BY SA';
const icon = ;
const owner = 'Your name';
describe('Copyright', () => {
it('renders the copyright owner', () => {
render();
expect(rtlScreen.getByText(owner)).toBeInTheDocument();
});
it('renders the copyright start date', () => {
render();
expect(rtlScreen.getByText(dates.start)).toBeInTheDocument();
});
it('renders the copyright end date', () => {
render();
expect(rtlScreen.getByText(dates.end)).toBeInTheDocument();
});
it('renders the copyright icon', () => {
render();
expect(rtlScreen.getByTitle(iconHeading)).toBeInTheDocument();
});
});