department-of-veterans-affairs/vets-website

View on GitHub
src/applications/static-pages/health-care-manage-benefits/components/MoreInfoAboutBenefits/index.unit.spec.js

Summary

Maintainability
B
6 hrs
Test Coverage
// Dependencies.
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
// Relative imports.
import MoreInfoAboutBenefits from '.';

describe('More Informatin About Benefits <MoreInfoAboutBenefits>', () => {
  it('renders what we expect', () => {
    const wrapper = shallow(<MoreInfoAboutBenefits />);

    const text = wrapper.text();
    expect(text).to.include('More information about your benefits');
    expect(text).to.include('Health care benefits eligibility');
    expect(text).to.include('How to apply for health care benefits');
    expect(text).to.include('Health needs and conditions');
    expect(text).to.include('Disability benefits');

    wrapper.unmount();
  });
});