/* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { shallow } from 'enzyme';
import { Label } from '../lib';

describe('Label', () => {
  it('should render children', () => {
    const wrapper = shallow(<Label>Yo!</Label>);

    expect(wrapper.text()).toBe('Yo!');
  });

  it('should render labels with default color', () => {
    const wrapper = shallow(<Label>Default Label</Label>);

    expect(wrapper.hasClass('label-default')).toBe(true);
  });

  it('should render Labels with other colors', () => {
    const wrapper = shallow(<Label color="danger">Danger Label</Label>);

    expect(wrapper.hasClass('label-danger')).toBe(true);
  });
});

@@ -678,13 +678,183 @@
 );%0A  %7D);
+%0A%0A  it('should render Labels as pills', () =%3E %7B%0A    const wrapper = shallow(%3CLabel pill%3EPill Label%3C/Label%3E);%0A%0A    expect(wrapper.hasClass('label-pill')).toBe(true);%0A  %7D);
 %0A%7D);%0A

add test for pill prop