Skip to content

Commit

Permalink
Use a consistent form for the messages in the example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svenheden committed Dec 14, 2015
1 parent 7436279 commit 57a5dc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ import { shallow } from 'enzyme';

describe('<MyComponent />', () => {

it('should render three <Foo /> components', () => {
it('renders three <Foo /> components', () => {
const wrapper = shallow(<MyComponent />);
expect(wrapper.find(Foo)).to.have.length(3);
});

it('should render an `.icon-star`', () => {
it('renders an `.icon-star`', () => {
const wrapper = shallow(<MyComponent />);
expect(wrapper.find('.icon-star')).to.have.length(1);
});

it('should render children when passed in', () => {
it('renders children when passed in', () => {
const wrapper = shallow(
<MyComponent>
<div className="unique" />
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('<Foo />', () => {
expect(wrapper.find('.foo-bar').length).to.equal(3);
});

it('rendered the title', () => {
it('renders the title', () => {
const wrapper = render(<Foo title="unique" />);
expect(wrapper.text()).to.contain("unique");
});
Expand Down

0 comments on commit 57a5dc5

Please sign in to comment.