Skip to content

Commit 45496f3

Browse files
author
Your Name
committed
refactor: remove unused ProfileHeader component and related accessibility tests
1 parent 1c96b93 commit 45496f3

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

i18n/locales/en.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,6 @@
365365
"share_button": "Share on Bluesky",
366366
"compose_text": "Hey {'@'}{handle}! Have you checked out npmx.dev yet? It's a browser for the npm registry that's fast, modern, and open-source.\nhttps://npmx.dev"
367367
},
368-
"avatar_alt": "Profile avatar",
369-
"unknown_profile": "Unknown profile",
370368
"linked_accounts": {
371369
"status": {
372370
"verified": "Verified",

test/nuxt/a11y.spec.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ import SizeIncrease from '~/components/Package/SizeIncrease.vue'
273273
import Likes from '~/components/Package/Likes.vue'
274274
import AccountItem from '~/components/AccountItem.vue'
275275
import LinkedAccounts from '~/components/LinkedAccounts.vue'
276-
import ProfileHeader from '~/components/ProfileHeader.vue'
277276
import type { VueUiXyDatasetItem } from 'vue-data-ui'
278277

279278
describe('component accessibility audits', () => {
@@ -915,22 +914,6 @@ describe('component accessibility audits', () => {
915914
})
916915
})
917916

918-
describe('ProfileHeader', () => {
919-
it('should have no accessibility violations with profile data', async () => {
920-
const component = await mountSuspended(ProfileHeader, {
921-
props: {
922-
profile: {
923-
name: 'npmx Team',
924-
avatar: 'https://api.dicebear.com/9.x/shapes/svg?seed=npmx',
925-
description: 'Open source maintainers',
926-
},
927-
},
928-
})
929-
const results = await runAxe(component)
930-
expect(results.violations).toEqual([])
931-
})
932-
})
933-
934917
describe('LinkedAccounts', () => {
935918
it('should have no accessibility violations with account list', async () => {
936919
const component = await mountSuspended(LinkedAccounts, {

0 commit comments

Comments
 (0)