ModusCreateOrg/budgeting

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

Summary

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

// mock nested components
jest.mock('components/NavLink', () => () => <div />);

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