import CCBySA from '@components/atoms/icons/cc-by-sa';
import { render, screen } from '@tests/utils';
import Copyright from './copyright';
const dates = {
start: '2012',
end: '2022',
};
const icon = ;
const owner = 'Your name';
describe('Copyright', () => {
it('renders the copyright owner', () => {
render();
expect(screen.getByText(owner)).toBeInTheDocument();
});
it('renders the copyright start date', () => {
render();
expect(screen.getByText(dates.start)).toBeInTheDocument();
});
it('renders the copyright end date', () => {
render();
expect(screen.getByText(dates.end)).toBeInTheDocument();
});
it('renders the copyright icon', () => {
render();
expect(screen.getByTitle('CC BY SA')).toBeInTheDocument();
});
});
ue='aa279a6afb67ac4d4a4b5cf5b267a0141055d661'/>
blob: 8ea801e696bd3661e5ee7cd29b6d7127dd8ba871 (
plain)
1
2
3
4
5
6
7
|
@use "@styles/abstracts/functions" as fun;
.icon {
display: block;
width: var(--icon-size, #{fun.convert-px(40)});
fill: var(--color-fg);
}
|