import React from 'react'
import renderer from 'react-test-renderer'
import fixture from '../fixtures/index'
import { Drawer as Subject } from '../../index'
const propsAnonymous = { ...fixture, userIsAnonymous: true, userIsLoggedIn: false }
const propsLoggedIn = { ...fixture, userIsAnonymous: false, userIsLoggedIn: true }
const propsAskFt = { ...fixture, showAskButton: true }
describe('dotcom-ui-header/src/components/Drawer', () => {
it('renders as an anonymous user', () => {
const tree = renderer.create().toJSON()
expect(tree).toMatchSnapshot()
})
it('renders as a logged in user', () => {
const tree = renderer.create().toJSON()
expect(tree).toMatchSnapshot()
})
it('renders ASK FT button', () => {
const tree = renderer.create().toJSON()
expect(tree).toMatchSnapshot()
})
})