Skip to content

Instantly share code, notes, and snippets.

@hartzis
Last active December 27, 2015 19:29
Show Gist options
  • Save hartzis/e5f889cc4b0c75849ba8 to your computer and use it in GitHub Desktop.
Save hartzis/e5f889cc4b0c75849ba8 to your computer and use it in GitHub Desktop.
Enzyme Tape React Tests example Item
test('basic <Item/>', (t)=> {
t.plan(1);
const basicItem = {id: 'one'};
const wrapper = shallow(<Item item={basicItem}/>);
t.equal(wrapper.find('div').text(), 'one');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment