import React from 'react';
import ReactDOMServer from 'react-dom/server';
import axe from '../../../../axe';
import CounterInput from '..';

describe('<CounterInput/>', () => {
    it('should be accessible when label is passed', async () => {
        expect.assertions(1);
        const html = ReactDOMServer.renderToString(<CounterInput label="CounterInput Label" />);
        const results = await axe(html);
        expect(results).toHaveNoViolations();
    });
});
