@roo-ui/components
Version:
23 lines (17 loc) • 546 B
JavaScript
import React from 'react';
import { qantas as theme } from '@roo-ui/themes';
import { shallowWithTheme } from '@roo-ui/test-utils';
import { axe } from 'jest-axe';
import Paragraph from '.';
describe('<Paragraph />', () => {
let wrapper;
beforeEach(() => {
wrapper = shallowWithTheme(<Paragraph>Hello world</Paragraph>, theme);
});
it('renders correctly', () => {
expect(wrapper).toMatchSnapshot();
});
it('has no accessibility errors', async () => {
expect(await axe(wrapper.html())).toHaveNoViolations();
});
});