lnked/react-starter

View on GitHub
src/__tests__/enzyme.test.js

Summary

Maintainability
A
0 mins
Test Coverage
test('test', () => { })

// import React from 'react';
// import {shallow} from 'enzyme';
// import CheckboxWithLabel from '../CheckboxWithLabel';

// test('CheckboxWithLabel changes the text after click', () => {
//   // Render a checkbox with label in the document
//   const checkbox = shallow(<CheckboxWithLabel labelOn="On" labelOff="Off" />);

//   expect(checkbox.text()).toEqual('Off');

//   checkbox.find('input').simulate('change');

//   expect(checkbox.text()).toEqual('On');
// });