Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 11 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import '@testing-library/jest-dom/extend-expect'; |
||
2 | import Footer from './Footer.svelte'; |
||
3 | import {screen, render} from '@testing-library/svelte'; |
||
4 | |||
5 | it('renders the footer', () => { |
||
6 | render(Footer); |
||
7 | |||
8 | const currentYear = new Date().getFullYear(); |
||
9 | const footerText = `Copyright © ${currentYear}`; |
||
10 | expect(screen.getByText(footerText)).toBeInTheDocument(); |
||
11 | }); |
||
12 |