Sha256: f405647c7f6683a96b3772a1d2bacf390de8266cb04c87e9fd9bdba8576a8813
Contents?: true
Size: 577 Bytes
Versions: 104
Compression:
Stored size: 577 Bytes
Contents
import React from 'react'; import axe from 'axe-core'; import { mountToDoc } from './test-helpers'; import Link from './Link'; test('Link has no aXe violations', done => { const linkComponent = mountToDoc( <Link page="http://www.axe-core.org">aXe website</Link> ); const linkNode = linkComponent.getDOMNode(); const config = { rules: { 'color-contrast': { enabled: false }, 'link-in-text-block': { enabled: false } } }; axe.run(linkNode, config, (err, { violations }) => { expect(err).toBe(null); expect(violations).toHaveLength(0); done(); }); });
Version data entries
104 entries across 104 versions & 1 rubygems