text: import React from 'react';
  import { render } from '@testing-library/react';
  import { Provider } from 'react-redux';
  import thunk from 'redux-thunk';
  import configureStore from 'redux-mock-store';
  import Authorized from './authorized-devices';
  import { routes } from './device-groups';
  import { defaultState, undefineds } from '../../../../tests/mockData';
  
  const mockStore = configureStore([thunk]);
  
  describe('AuthorizedDevices Component', () => {
    let store;
    beforeEach(() => {
      store = mockStore({
        ...defaultState,
        devices: {
          ...defaultState.devices,
          byStatus: {
            ...defaultState.devices.byStatus,
            accepted: {
              deviceIds: [],
              total: 0
            }
          }
        }
      });
    });
  
    it('renders correctly', async () => {
      const { baseElement } = render(
        <Provider store={store}>
          <Authorized onFilterChange={jest.fn} states={routes} />
        </Provider>
      );
      const view = baseElement.firstChild;
      expect(view).toMatchSnapshot();
      expect(view).toEqual(expect.not.stringMatching(undefineds));
    });
  });
  