Skip to content

Commit 286d648

Browse files
committed
chore: one more tests fix
1 parent f1430a1 commit 286d648

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

app/components/Landing/IntroHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ onPrehydrate(el => {
6161
year: 'numeric',
6262
}).format(new Date())
6363
64-
const noodleDate = new Intl.DateTimeFormat('en-US', {
64+
const noodleDate = noodle.date && new Intl.DateTimeFormat('en-US', {
6565
timeZone: noodle.timezone === 'auto' ? undefined : noodle.timezone,
6666
month: '2-digit',
6767
day: '2-digit',
6868
year: 'numeric',
69-
}).format(new Date())
69+
}).format(new Date(noodle.date))
7070
return todayDate === noodleDate
7171
})
7272

app/components/Noodle/Artemis/Logo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
class="mb-8 motion-safe:animate-fade-in motion-safe:animate-scale-in w-80 sm:w-100"
66
dark-src="/extra/npmx-dark-artemis.svg"
77
light-src="/extra/npmx-light-artemis.svg"
8+
alt=""
89
/>
910
<ColorSchemeImg
1011
width="1440"
1112
height="455"
1213
class="absolute bottom-0 inset-is-0 w-full h-auto mix-blend-lighten light:mix-blend-darken motion-safe:animate-fade-in"
1314
dark-src="/extra/moon-dark.png"
1415
light-src="/extra/moon-light.png"
16+
alt=""
1517
/>
1618
</div>
1719
</template>

test/nuxt/a11y.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ import {
158158
LandingIntroHeader,
159159
NoodleKawaiiLogo,
160160
NoodleArtemisLogo,
161-
NoodleTkawaiiLogo,
162161
LinkBase,
163162
CallToAction,
164163
CodeDirectoryListing,
@@ -372,12 +371,6 @@ describe('component accessibility audits', () => {
372371
const results = await runAxe(component)
373372
expect(results.violations).toEqual([])
374373
})
375-
376-
it('should have no accessibility violations', async () => {
377-
const component = await mountSuspended(NoodleTkawaiiLogo)
378-
const results = await runAxe(component)
379-
expect(results.violations).toEqual([])
380-
})
381374
})
382375

383376
describe('AppFooter', () => {

0 commit comments

Comments
 (0)