/* eslint-env jest */
import * as React from 'react'
import { shallow } from 'enzyme'
import RoleDemo from '../demo'
import 'jest-styled-components'
describe('', () => {
it('renders', () => {
const demo = shallow()
expect(demo).toMatchSnapshot()
})
it('changes state when clicked', () => {
const demo = shallow()
expect(demo.state().active).toEqual(false)
demo.dive().simulate('click')
expect(demo.state().active).toEqual(true)
})
})