Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created February 26, 2017 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeaholicguy/8ab91ff36c9f052b3f3e1a79bfffaa36 to your computer and use it in GitHub Desktop.
Save codeaholicguy/8ab91ff36c9f052b3f3e1a79bfffaa36 to your computer and use it in GitHub Desktop.
import Track from './Track';
import {shallow} from 'enzyme';
describe('Track', () => {
it('shows track title', () => {
const props = {
track: {origin: {title: 'foo'}}
}
const element = shallow(<Track {...props} />);
expect(element.contains('foo')).to.be.true;
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment