import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import Bar from '../Bar';
describe('Bar', () => {
it('should render properly', () => {
const data = 'fake';
const wrapper = shallow(
<Bar data={data} />
);
console.log('wrapper:', wrapper.debug())
expect(toJson(wrapper)).toMatchSnapshot();
});
});