Skip to content

Commit b363f85

Browse files
committed
fix: only render quadrant if packages are selected
1 parent 85e6ac8 commit b363f85

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

app/pages/compare.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ useSeoMeta({
356356
{{ $t('compare.packages.no_chartable_data') }}
357357
</p>
358358
<FacetQuadrantChart
359+
v-if="packages.length"
359360
:packages-data="packagesData"
360361
:packages="packages"
361362
/>

test/nuxt/a11y.spec.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,17 +1038,6 @@ describe('component accessibility audits', () => {
10381038
const results = await runAxe(wrapper)
10391039
expect(results.violations).toEqual([])
10401040
})
1041-
1042-
it('should have no accessibility violations with empty data', async () => {
1043-
const wrapper = await mountSuspended(FacetQuadrantChart, {
1044-
props: {
1045-
packagesData: [],
1046-
packages: [],
1047-
},
1048-
})
1049-
const results = await runAxe(wrapper)
1050-
expect(results.violations).toEqual([])
1051-
})
10521041
})
10531042

10541043
it('should have no accessibility violations with empty data', async () => {

0 commit comments

Comments
 (0)