message: refactor Avatar tests
diff: @@ -4,11 +4,22 @@ import renderer from 'react-test-renderer'
  const render = component => renderer.create(component).toJSON()
  -it('Avatar does its thing', () => {
  +describe('Avatar', () => {
  + const urlFor = (username, size) => `${IMAGE_BASE_URL}primer?v=3&s=${size}`
  + it('renders small by default', () => {
  expect(render(<Avatar username='primer'/>))
  .toEqual(render(<img className='avatar avatar-small' src={`${IMAGE_BASE_URL}primer?v=3&s=40`} width={20} height={20} alt='primer' />))
  + })
  +
  + it('respects the size prop', () => {
  expect(render(<Avatar username='primer' size={40} />))
  - .toEqual(render(<img className='avatar' src={`${IMAGE_BASE_URL}primer?v=3&s=80`} width={40} height={40} alt='primer' />))
  - expect(render(<Avatar username='primer' baseURL='/' />))
  - .toEqual(render(<img className='avatar avatar-small' src={`/primer?v=3&s=40`} width={20} height={20} alt='primer' />))
  + .toEqual(render(<img className='avatar' src={urlFor('primer', 80)} width={40} height={40} alt='primer' />))
  + expect(render(<Avatar username='primer' src='/primer.jpg' />))
  + .toEqual(render(<img className='avatar avatar-small' src='/primer.jpg' width={20} height={20} alt='primer' />))
  + })
  +
  + it('respects isChild', () => {
  + expect(render(<Avatar username='primer' isChild />))
  + .toEqual(render(<img className='avatar avatar-small avatar-child' src={urlFor('primer', 40)} width={20} height={20} alt='primer' />))
  + })
  })
  