import React from 'react';

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

const testComponent = () => withDefaultTheme(<PolicyConsentDashboard
    config={{
        accessToken: "123", 
        apiKey: "123"
    }}
    type={ ConsentActionType.BUTTONS }
    policyId={"123"}
    subject="foo"
/>)

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

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