ModusCreateOrg/budgeting

View on GitHub
app/components/ReportsPanel/__tests__/index-test.js

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import renderer from 'react-test-renderer';
import ReportsPanel from '..';

// mock nested components
jest.mock('../ReportsTabbar', () => 'div');
jest.mock('react-router-dom');

it('renders correctly', () => {
  const tree = renderer.create(<ReportsPanel />).toJSON();
  expect(tree).toMatchSnapshot();
});