content: import React from 'react';
  import sinon from 'sinon';
  import { shallow } from 'enzyme';
  import { expect } from 'chai';
  
  import { HCAEnrollmentStatus } from '../../containers/HCAEnrollmentStatus';
  import HCAEnrollmentStatusWarning from '../../components/HCAEnrollmentStatusWarning';
  import HCAEnrollmentStatusFAQ from '../../components/HCAEnrollmentStatusFAQ';
  
  describe('<HCAEnrollmentStatus />', () => {
    let getEnrollmentStatusSpy;
    let defaultProps = {};
    beforeEach(() => {
      getEnrollmentStatusSpy = sinon.spy();
      defaultProps = {
        applicationDate: '2019-04-24T00:00:00.000-06:00',
        enrollmentDate: '2019-04-30T00:00:00.000-06:00',
        enrollmentStatus: 'enrolled',
        getEnrollmentStatus: getEnrollmentStatusSpy,
        preferredFacility: '463 - CHEY6',
        route: {},
      };
    });
    it('renders an HCAEnrollmentStatusWarning with the correct props', () => {
      const wrapper = shallow(<HCAEnrollmentStatus {...defaultProps} />);
      const statusWarning = wrapper.find(HCAEnrollmentStatusWarning);
      expect(statusWarning.prop('applicationDate')).to.equal(
        defaultProps.applicationDate,
      );
      expect(statusWarning.prop('enrollmentDate')).to.equal(
        defaultProps.enrollmentDate,
      );
      expect(statusWarning.prop('enrollmentStatus')).to.equal(
        defaultProps.enrollmentStatus,
      );
      expect(statusWarning.prop('preferredFacility')).to.equal(
        defaultProps.preferredFacility,
      );
      wrapper.unmount;
    });
    it('renders an HCAEnrollmentStatusFAQ with the correct props', () => {
      const wrapper = shallow(<HCAEnrollmentStatus {...defaultProps} />);
      const statusFAQ = wrapper.find(HCAEnrollmentStatusFAQ);
      expect(statusFAQ.prop('enrollmentStatus')).to.equal(
        defaultProps.enrollmentStatus,
      );
      expect(statusFAQ.prop('route')).to.equal(defaultProps.route);
      wrapper.unmount();
    });
    it('calls its `getEnrollmentStatus` prop when it mounts', () => {
      const wrapper = shallow(<HCAEnrollmentStatus {...defaultProps} />);
      expect(getEnrollmentStatusSpy.callCount).to.equal(1);
      wrapper.unmount();
    });
  });
  