Last active
April 13, 2018 03:35
-
-
Save b-tiwari/43f8995875b2f8bf8a12f99269f89887 to your computer and use it in GitHub Desktop.
header.spec.ts
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 Header from './header'; | |
import renderer from 'react-test-renderer'; | |
describe('Header', () => { | |
it('should render correctly', () => { | |
const header = renderer.create( | |
<Header title="Test" /> | |
).toJSON; | |
expect(header).toMatchSnapshot(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment