department-of-veterans-affairs/vets-website

View on GitHub
src/applications/personalization/components/NotInMPIError.unit.spec.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { expect } from 'chai';
import { render } from '@testing-library/react';

import NotInMPI from './NotInMPIError';

describe('NotInMPI', async () => {
  let wrapper;
  beforeEach(() => {
    wrapper = render(<NotInMPI />);
  });

  it('should render the correct text', async () => {
    expect(
      await wrapper.findByText(
        'We can’t match your information with our Veteran records',
      ),
    ).to.exist;
    expect(
      await wrapper.findByText(
        'You may not be able to use some tools and features right now. But we’re working to connect with your records. Try again soon.',
      ),
    ).to.exist;
    wrapper.unmount();
  });
});