fix: tranfer test

pull/165/head
wangxueliang 2018-05-23 16:48:45 +08:00
parent 18b55d153f
commit 277f94af9d
2 changed files with 16 additions and 642196 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,12 +3,17 @@ import Search from '../search'
describe('Search', () => {
it('should show cross icon when input value exists', () => {
const wrapper = mount(Search)
const props = {
propsData: {
value: '',
},
}
const wrapper = mount(Search, props)
expect(wrapper).toMatchSnapshot()
expect(wrapper.html()).toMatchSnapshot()
wrapper.setProps({ value: 'a' })
expect(wrapper).toMatchSnapshot()
expect(wrapper.html()).toMatchSnapshot()
})
})