File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ import {
7474 CompareFacetCard ,
7575 CompareFacetRow ,
7676 CompareFacetSelector ,
77+ CompareLineChart ,
7778 ComparePackageSelector ,
7879 DateTime ,
7980 DependencyPathPopup ,
@@ -1447,6 +1448,24 @@ describe('component accessibility audits', () => {
14471448 } )
14481449 } )
14491450
1451+ describe ( 'CompareLineChart' , ( ) => {
1452+ it ( 'should have no accessibility violations with no packages' , async ( ) => {
1453+ const component = await mountSuspended ( CompareLineChart , {
1454+ props : { packages : [ ] } ,
1455+ } )
1456+ const results = await runAxe ( component )
1457+ expect ( results . violations ) . toEqual ( [ ] )
1458+ } )
1459+
1460+ it ( 'should have no accessibility violations with packages selected' , async ( ) => {
1461+ const component = await mountSuspended ( CompareLineChart , {
1462+ props : { packages : [ 'vue' , 'react' ] } ,
1463+ } )
1464+ const results = await runAxe ( component )
1465+ expect ( results . violations ) . toEqual ( [ ] )
1466+ } )
1467+ } )
1468+
14501469 describe ( 'ComparePackageSelector' , ( ) => {
14511470 it ( 'should have no accessibility violations with no packages' , async ( ) => {
14521471 const component = await mountSuspended ( ComparePackageSelector , {
You can’t perform that action at this time.
0 commit comments