/* istanbul ignore file */

import React from 'react';
import { render, screen } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import AppRoutes from './AppRoutes';
import { jsx as _jsx } from "react/jsx-runtime";
beforeEach(() => {
  Object.defineProperty(window, 'matchMedia', {
    writable: true,
    value: jest.fn().mockImplementation(query => ({
      matches: false,
      media: query,
      onchange: null,
      addListener: jest.fn(),
      // deprecated
      removeListener: jest.fn(),
      // deprecated
      addEventListener: jest.fn(),
      removeEventListener: jest.fn(),
      dispatchEvent: jest.fn()
    }))
  });
});
it.skip('navigates settings page', () => {
  render( /*#__PURE__*/_jsx(MemoryRouter, {
    initialEntries: ['/settings'],
    children: /*#__PURE__*/_jsx(AppRoutes, {})
  }));
  const linkElement = screen.getByText(/Settings/i);
  expect(linkElement).toBeInTheDocument();
});
it.skip('navigates db page', () => {
  /* const { asFragment } = */render( /*#__PURE__*/_jsx(MemoryRouter, {
    initialEntries: ['/foo'],
    children: /*#__PURE__*/_jsx(AppRoutes, {})
  }));
  // const linkElement = screen.getByText(/List of tables in DB:/i);
  const linkElement = screen.getByText(/Failed to get dbs from localStorage/i);
  expect(linkElement).toBeInTheDocument();
  // expect(asFragment()).toMatchSnapshot();
});
//# sourceMappingURL=AppRoutes.t.js.map