ant-design/components/avatar/__tests__/Avatar.test.js
2017-06-09 12:02:25 +08:00

12 lines
324 B
JavaScript

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);
});
});