Created
April 17, 2020 17:52
-
-
Save bufordeeds/cb0daa45d916a18d26ec71829f220f41 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 App from './App'; | |
import { mount } from 'enzyme'; | |
test('toggle should be rendered', () => { | |
const wrapper = mount(<App/>); | |
const toggle = wrapper.find('#dark_mode_toggle'); | |
console.log(wrapper); | |
expect(toggle).to.have.lengthOf(1); | |
}); | |
// test('Link changes the class when hovered', () => { | |
// const component = renderer.create( | |
// <Link page="http://www.facebook.com">Facebook</Link>, | |
// ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment