15 lines
		
	
	
		
			345 B
		
	
	
	
		
			JavaScript
		
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			345 B
		
	
	
	
		
			JavaScript
		
	
	
import { mount } from '@vue/test-utils'
 | 
						|
import Avatar from '..'
 | 
						|
 | 
						|
describe('Avatar Render', () => {
 | 
						|
  it('Render long string correctly', () => {
 | 
						|
    const wrapper = mount(Avatar, {
 | 
						|
      slots: {
 | 
						|
        default: 'TestString',
 | 
						|
      },
 | 
						|
    })
 | 
						|
    const children = wrapper.findAll('.ant-avatar-string')
 | 
						|
    expect(children.length).toBe(1)
 | 
						|
  })
 | 
						|
})
 |