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 d6a5dfc commit 41b6509
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 41b6509

Please sign in to comment.