Last active
December 27, 2015 19:29
-
-
Save hartzis/e5f889cc4b0c75849ba8 to your computer and use it in GitHub Desktop.
Enzyme Tape React Tests example Item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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