From 029fa4689b493f94a1857412633f44e4c93f2711 Mon Sep 17 00:00:00 2001 From: athurman Date: Mon, 19 Oct 2015 21:13:54 -0500 Subject: [PATCH] refactor item test --- test/specs/views/Items/Item-test.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/specs/views/Items/Item-test.js b/test/specs/views/Items/Item-test.js index f77ff54311..64196f9af3 100644 --- a/test/specs/views/Items/Item-test.js +++ b/test/specs/views/Items/Item-test.js @@ -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 text

-
- ).first(); - renderedItem.props.children.type.should.equal('p'); + let child = faker.hacker.phrase(); + render({child}).findText(child); }); });