You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
324 B
12 lines
324 B
8 years ago
|
import React from 'react';
|
||
|
import { mount } from 'enzyme';
|
||
|
import Avatar from '..';
|
||
|
|
||
|
describe('Avatar Render', () => {
|
||
|
it('Render long string correctly', () => {
|
||
|
const wrapper = mount(<Avatar>TestString</Avatar>);
|
||
|
const children = wrapper.find('.ant-avatar-string');
|
||
|
expect(children.length).toBe(1);
|
||
|
});
|
||
|
});
|