nexxtway/react-rainbow

View on GitHub
src/components/WeeklyCalendar/__test__/weeklyCalendar.a11y.spec.js

Summary

Maintainability
A
2 hrs
Test Coverage
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import axe from '../../../../axe';
import WeekyCalendar from '..';

describe('<WeekyCalendar />', () => {
    it('should be accessible', async () => {
        expect.assertions(1);
        const html = ReactDOMServer.renderToString(<WeekyCalendar />);
        const results = await axe(html);
        expect(results).toHaveNoViolations();
    });
});