Skip to content

Commit 46832d1

Browse files
committed
Cleanup last two code lint errors
1 parent c8e1240 commit 46832d1

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎src/components/Avatar/server/__tests__/index.spec.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { ImageMetadata } from 'astro'
22
import { describe, it, expect, beforeEach, vi, afterEach } from 'vitest'
33

4-
/* eslint-disable-next-line no-restricted-syntax -- import.meta.glob required to load fixture assets */
54
const fixtureModules = import.meta.glob('../__fixtures__/avatars/*.{webp,jpg,png}', {
65
eager: true,
76
import: 'default',

‎src/components/Consent/Checkbox/client/__fixtures__/checkbox.fixture.astro‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ export interface CheckboxFixtureProps extends ConsentCheckboxProps {
66
wrapInForm?: boolean
77
}
88
9-
const {
10-
wrapInForm = true,
11-
...props
12-
} = {
9+
const fixtureProps: CheckboxFixtureProps = {
1310
purpose: 'Responding to your inquiry',
1411
wrapInForm: true,
1512
...Astro.props,
16-
} as CheckboxFixtureProps
13+
}
14+
15+
const {
16+
wrapInForm = true,
17+
...props
18+
} = fixtureProps
1719
---
1820
{wrapInForm ? (
1921
<form id="gdpr-consent-form" data-testid="gdpr-consent-form">

0 commit comments

Comments
 (0)