import CCBySA from '@components/atoms/icons/cc-by-sa'; import { render, screen } from '@test-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(); }); }); > The frontend of my personal website.Armand Philippot
aboutsummaryrefslogtreecommitdiffstats
blob: b60f7685fd018b685281447d91d6d95cb47380b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65