Skip to content

Commit fb9f60f

Browse files
committed
chore: add tests
1 parent 9a07e28 commit fb9f60f

2 files changed

Lines changed: 565 additions & 0 deletions

File tree

test/nuxt/components.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ import PackageTableRow from '~/components/PackageTableRow.vue'
9393
import PaginationControls from '~/components/PaginationControls.vue'
9494
import ViewModeToggle from '~/components/ViewModeToggle.vue'
9595
import PackageVulnerabilityTree from '~/components/PackageVulnerabilityTree.vue'
96+
import PackageDeprecatedTree from '~/components/PackageDeprecatedTree.vue'
9697
import DependencyPathPopup from '~/components/DependencyPathPopup.vue'
9798

9899
describe('component accessibility audits', () => {
@@ -1258,6 +1259,19 @@ describe('component accessibility audits', () => {
12581259
})
12591260
})
12601261

1262+
describe('PackageDeprecatedTree', () => {
1263+
it('should have no accessibility violations in idle state', async () => {
1264+
const component = await mountSuspended(PackageDeprecatedTree, {
1265+
props: {
1266+
packageName: 'vue',
1267+
version: '3.5.0',
1268+
},
1269+
})
1270+
const results = await runAxe(component)
1271+
expect(results.violations).toEqual([])
1272+
})
1273+
})
1274+
12611275
describe('DependencyPathPopup', () => {
12621276
it('should have no accessibility violations with short path', async () => {
12631277
const component = await mountSuspended(DependencyPathPopup, {

0 commit comments

Comments
 (0)