Created
February 12, 2019 18:28
-
-
Save Ranguro/f318b60054f415fd2a418900c2562742 to your computer and use it in GitHub Desktop.
this passes
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 toJson from 'enzyme-to-json'; | |
// eslint-disable-next-line | |
import DummyComponent from './dir-to-dummy-component/DummyComponent'; | |
// eslint-disable-next-line | |
function shallow() { | |
const wrapper = shallow(<SeriesTabs />); | |
return { wrapper }; | |
} | |
describe('<DummyComponent/> Component', () => { | |
it('Should compile', () => { | |
const { wrapper } = shallow(); | |
expect(toJson(wrapper)).toMatchSnapshot(); | |
console.log('Wrapper debug'); | |
console.log(wrapper.debug()); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment