File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33 */
44
55import { dom , roles } from 'aria-query' ;
6+ import includes from 'array-includes' ;
67import JSXAttributeMock from './JSXAttributeMock' ;
78import JSXElementMock from './JSXElementMock' ;
89
@@ -127,14 +128,14 @@ const interactiveRoles = []
127128 'toolbar' ,
128129 )
129130 . filter ( role => ! roles . get ( role ) . abstract )
130- . filter ( role => roles . get ( role ) . superClass . some ( klasses => klasses . includes ( 'widget' ) ) ) ;
131+ . filter ( role => roles . get ( role ) . superClass . some ( klasses => includes ( klasses , 'widget' ) ) ) ;
131132
132133const nonInteractiveRoles = roleNames
133134 . filter ( role => ! roles . get ( role ) . abstract )
134- . filter ( role => ! roles . get ( role ) . superClass . some ( klasses => klasses . includes ( 'widget' ) ) )
135+ . filter ( role => ! roles . get ( role ) . superClass . some ( klasses => includes ( klasses , 'widget' ) ) )
135136 // 'toolbar' does not descend from widget, but it does support
136137 // aria-activedescendant, thus in practice we treat it as a widget.
137- . filter ( role => ! [ 'toolbar' ] . includes ( role ) ) ;
138+ . filter ( role => ! includes ( [ 'toolbar' ] , role ) ) ;
138139
139140export function genElementSymbol ( openingElement : Object ) {
140141 return (
You can’t perform that action at this time.
0 commit comments