import React from 'react';
import { mount } from 'enzyme';
import { expect } from 'chai';
import { describe, it, specs } from '../../storybook/facade';
import Avatar from './index';

export default (stories) => {
	stories.add('Avatar', () => {
		const component = (
			<Avatar
				src="https://test.ppoint.io:3000/frontend/person/3ada78b81976e052/avatar"
			/>
		);

		specs(() => describe('Avatar', () => {
			const wrapper = mount(component);

			it('Should be ok', () => {
				expect(wrapper).be.ok;
			});
		}));

		return component;
	});
};
