Created
July 25, 2016 17:02
-
-
Save codeaholicguy/aef08cda5ccb2142ea87263d65663f36 to your computer and use it in GitHub Desktop.
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
import TrackList from './TrackList'; | |
import {shallow} from 'enzyme'; | |
describe('TrackList', () => { | |
it('shows two tracks', () => { | |
const props = { | |
tracks: [{ id: 1, title: 'foo' }, { id: 2, title: 'bar' }] | |
}; | |
const element = shallow(<TrackList {...props} />); | |
expect(element.find('div')).to.have.length(2); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment