Last active
October 3, 2018 13:24
-
-
Save productioncoder/8c2299f12c4721251d7fce92219279e1 to your computer and use it in GitHub Desktop.
Youtube Comment and AddComment snapshot tests
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 React from 'react'; | |
import {shallow} from 'enzyme'; | |
import {AddComment} from '../AddComment'; | |
describe('AddComment', () => { | |
test('AddComment renders correctly', () => { | |
const wrapper = shallow( | |
<AddComment/> | |
); | |
expect(wrapper).toMatchSnapshot(); | |
}); | |
}); |
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 React from 'react'; | |
import {shallow} from 'enzyme'; | |
import {Comment} from '../Comment'; | |
describe('Comment', () => { | |
test('renders Comment', () => { | |
const wrapper = shallow(<Comment/>); | |
expect(wrapper).toMatchSnapshot(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment