fix: tranfer test
							parent
							
								
									4afcd45d2b
								
							
						
					
					
						commit
						7b55c0d2fb
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -3,12 +3,17 @@ import Search from '../search' | ||||||
| 
 | 
 | ||||||
| describe('Search', () => { | describe('Search', () => { | ||||||
|   it('should show cross icon when input value exists', () => { |   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' }) |     wrapper.setProps({ value: 'a' }) | ||||||
| 
 | 
 | ||||||
|     expect(wrapper).toMatchSnapshot() |     expect(wrapper.html()).toMatchSnapshot() | ||||||
|   }) |   }) | ||||||
| }) | }) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 wangxueliang
						wangxueliang