import React from 'react'
import renderer from 'react-test-renderer'
import { NavigationSticky } from '..'
import { mount } from 'enzyme'
describe('packages/ui/NavigationSticky', () => {
it('renders a basic NavigationSticky', () => {
const tree = renderer
.create(
{({ name }) => Test the {name}
}
)
.toJSON()
expect(tree).toMatchSnapshot()
})
it('renders a top sticky nav with height', () => {
const wrapper = mount(
{({ name }) => Test the {name}
}
)
expect(wrapper).toMatchSnapshot()
})
it('renders a bottom sticky nav with height', () => {
const wrapper = mount(
{({ name }) => Test the {name}
}
)
expect(wrapper).toMatchSnapshot()
})
})