import { expect } from 'chai';

import ProfilePhoto from '../../components/ProfilePhoto';


describe('ProfilePhoto component', () => {
  it('should have a default image', () => {
    const element = ProfilePhoto({});
    expect(element.props.style.backgroundImage).to.be.equal('url(/images/default_avatar.svg)');
  });

  it('should render an image if provided', () => {
    const url = 'image.jpg';
    const element = ProfilePhoto({ url });
    expect(element.props.style.backgroundImage).to.be.equal('url('+url+')');
  });

});

@@ -276,16 +276,23 @@
 l('url(/
+static/
 images/d

fix profilephoto test