Skip to content

Commit

Permalink
refactor item test
Browse files Browse the repository at this point in the history
  • Loading branch information
athurman committed Oct 20, 2015
1 parent a813fb3 commit 029fa46
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/specs/views/Items/Item-test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {Item} from 'stardust';
import faker from 'faker';

describe('Item', () => {
it('has children', () => {
let renderedItem = render(
<Item description='discription'>
<p>Item description text</p>
</Item>
).first();
renderedItem.props.children.type.should.equal('p');
let child = faker.hacker.phrase();
render(<Item description='foo'>{child}</Item>).findText(child);
});
});

0 comments on commit 029fa46

Please sign in to comment.