department-of-veterans-affairs/vets-website

View on GitHub
src/applications/static-pages/ezr-submission-options/components/Descriptions/index.unit.spec.jsx

Summary

Maintainability
B
5 hrs
Test Coverage
import React from 'react';
import { expect } from 'chai';
import { render } from '@testing-library/react';
import { InPersonDescription, MailDescription, PhoneDescription } from '.';

describe('ezr submission option descriptions', () => {
  context('when PhoneDescription renders', () => {
    it('should not be empty', () => {
      const { container } = render(<PhoneDescription />);
      expect(container).to.not.be.empty;
    });
  });

  context('when MailDescription renders', () => {
    it('should not be empty', () => {
      const { container } = render(<MailDescription />);
      expect(container).to.not.be.empty;
    });
  });

  context('when InPersonDescription renders', () => {
    it('should not be empty', () => {
      const { container } = render(<InPersonDescription />);
      expect(container).to.not.be.empty;
    });
  });
});