/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-undef */
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import '@testing-library/jest-dom';
import Dialog from '../components/Dialog';
describe('Dialog component', () => {
afterEach(cleanup);
test('check open status', () => {
const { getByText } = render();
expect(getByText('content')).toBeVisible();
});
test('check close status', () => {
const { queryByText } = render();
expect(queryByText('content')).not.toBeInTheDocument();
});
});