kitten-components
Version:
Front-end components library
21 lines (16 loc) • 595 B
JavaScript
import React from 'react'
import { LocationInput } from 'kitten/components/form/location-input'
describe('<LocationInput />', () => {
describe('by default', () => {
const component = shallow(<LocationInput />)
it('renders a .k-LocationInput', () => {
expect(component.find('.k-LocationInput')).toHaveLength(1)
})
it('renders a .k-LocationInput__icon', () => {
expect(component.find('.k-LocationInput__icon')).toHaveLength(1)
})
it('renders a PlacesAutocomplete', () => {
expect(component.find('PlacesAutocomplete')).toHaveLength(1)
})
})
})