text: import React from 'react';
  import { render } from 'enzyme';
  import toJson from 'enzyme-to-json';
  import SystemPolicyCard from './SystemPolicyCard';
  import { IntlProvider } from 'react-intl';
  
  describe('SystemPolicyCard component', () => {
      it('should render', () => {
          const currentTime = new Date();
          currentTime.setMonth(currentTime.getMonth() - 6);
          const policy = {
              rulesPassed: 30,
              rulesFailed: 10,
              lastScanned: currentTime.toISOString(),
              refId: 'xccdf_org.ssgproject.content_profile_pci-dss',
              name: 'PCI-DSS v3 Control Baseline for Red Hat Enterprise Linux 7',
              compliant: false
          };
          const wrapper = render(
              <IntlProvider locale={ navigator.language }>
                  <SystemPolicyCard policy={ policy } />
              </IntlProvider>
          );
          expect(toJson(wrapper)).toMatchSnapshot();
      });
  });
  