ant-design-vue/components/transfer/__tests__/search.test.js

15 lines
320 B
JavaScript
Raw Normal View History

2018-05-23 08:07:02 +00:00
import { mount } from '@vue/test-utils'
import Search from '../search'
describe('Search', () => {
it('should show cross icon when input value exists', () => {
const wrapper = mount(Search)
expect(wrapper).toMatchSnapshot()
wrapper.setProps({ value: 'a' })
expect(wrapper).toMatchSnapshot()
})
})