Skip to content

Instantly share code, notes, and snippets.

@bufordeeds
Created April 17, 2020 17:52
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 bufordeeds/cb0daa45d916a18d26ec71829f220f41 to your computer and use it in GitHub Desktop.
Save bufordeeds/cb0daa45d916a18d26ec71829f220f41 to your computer and use it in GitHub Desktop.
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