Skip to content

Commit a794f1d

Browse files
committed
Fix issues
1 parent 478c393 commit a794f1d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

cspell/custom-dict.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ slackbot
114114
slideshare
115115
speakerdeck
116116
superfences
117-
svgs
118117
tiktok
119118
tsc
120119
turbopack

frontend/__tests__/unit/components/GeneralCompliantComponent.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ describe('GeneralCompliantComponent', () => {
5050

5151
it('renders the correct icon structure', () => {
5252
const { container } = render(<GeneralCompliantComponent {...baseProps} />)
53-
const svgs = container.querySelectorAll('svg')
54-
expect(svgs).toHaveLength(2)
53+
const icons = container.querySelectorAll('svg')
54+
expect(icons).toHaveLength(2)
5555
})
5656

5757
it('renders tooltip wrapper with title attribute', () => {
@@ -68,10 +68,10 @@ describe('GeneralCompliantComponent', () => {
6868

6969
it('has accessible SVG icons', () => {
7070
const { container } = render(<GeneralCompliantComponent {...baseProps} />)
71-
const svgs = container.querySelectorAll('svg[role="img"]')
72-
expect(svgs).toHaveLength(2)
73-
expect(svgs[0]).toHaveAttribute('aria-hidden', 'true')
74-
expect(svgs[1]).toHaveAttribute('aria-hidden', 'true')
71+
const icons = container.querySelectorAll('svg[role="img"]')
72+
expect(icons).toHaveLength(2)
73+
expect(icons[0]).toHaveAttribute('aria-hidden', 'true')
74+
expect(icons[1]).toHaveAttribute('aria-hidden', 'true')
7575
})
7676

7777
it('renders with custom icon', () => {

0 commit comments

Comments
 (0)