content: 'use babel';
  
  import React from 'react';
  import renderer from 'react-test-renderer';
  
  import {FLOW_COVERAGE_SUMMARY_DATA} from '../fixtures';
  
  import {BASE_DIR} from './common';
  
  const REACT_COMPONENT = `${BASE_DIR}/coverage-summary-table`;
  
  test('<FlowCoverageSummaryTable />', () => {
    const FlowCoverageSummaryTable = require(REACT_COMPONENT).default;
  
    // Expect positive with lower threshold.
    const positiveSummaryProps = {
      coverageSummaryData: {...FLOW_COVERAGE_SUMMARY_DATA, threshold: 40}
    };
    const positiveSummaryTree = renderer.create(<FlowCoverageSummaryTable {...positiveSummaryProps}/>).toJSON();
    expect(positiveSummaryTree).toMatchSnapshot();
  
    // Expect positive with higher threshold.
    const negativeSummaryProps = {
      coverageSummaryData: {...FLOW_COVERAGE_SUMMARY_DATA, threshold: 90}
    };
    const negativeSummaryTree = renderer.create(<FlowCoverageSummaryTable {...negativeSummaryProps}/>).toJSON();
    expect(negativeSummaryTree).toMatchSnapshot();
  });
  
  test.todo('<FlowCoverageSummaryTable /> with missing props');
  