import Enzyme from 'enzyme';
import { ConsentStatus } from './consentStatus';
import React from 'react';

import { ConsentActionType } from '../../node_modules/@signatu/consent';
import { withDefaultTheme } from '../test/testUtil';
import { ConsentTitle } from './consentTitle';

const testComponent = () => withDefaultTheme(<ConsentTitle
/>)

 test('Renders ConsentTitle element', async () => {
    const component = Enzyme.mount(testComponent())

    const title = component.find('[data-type="ConsentTitle"]')
    expect(title.length).toEqual(1)
    component.unmount()
})
