test()

in src/rules/valid-aria-role.js [13:17]


    test(tagName, props) {
        warnRuleDeprecated('valid-aria-role', 'aria-role');
        const hasRole = hasProp(props, 'role');
        return !hasRole || roles.indexOf(props.role) >= 0;
    }