text: import React from 'react';
  import { render } from '@testing-library/react';
  import { MemoryRouter } from 'react-router-dom';
  import OfferHeader from './offerheader';
  import { undefineds } from '../../../../tests/mockData';
  
  describe('DeviceNotifications Component', () => {
    it('renders correctly', async () => {
      const { baseElement } = render(
        <MemoryRouter>
          <OfferHeader />
        </MemoryRouter>
      );
      const view = baseElement.firstChild.firstChild;
      expect(view).toMatchSnapshot();
      expect(view).toEqual(expect.not.stringMatching(undefineds));
    });
  });
  