ModusCreateOrg/budgeting

View on GitHub
app/components/Legend/__tests__/LegendItem-test.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import renderer from 'react-test-renderer';
import LegendItem from '../LegendItem';

it('renders correctly', () => {
  const tree = renderer.create(<LegendItem color="test" value={3} label="test" />).toJSON();
  expect(tree).toMatchSnapshot();

  window.requestAnimationFrame(() => 'wow');
});