import Navbar from '../../../Components/HomePage/Sections/Navbar';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { act } from 'react-dom/test-utils';

let container = null;
beforeEach(() => {
  container = document.createElement('div');
  document.body.appendChild(container);
});

afterEach(() => {
  unmountComponentAtNode(container);
  container.remove();
  container = null;
});

it('Navbar rendering', () => {
  jest.spyOn(console, 'error').mockImplementation(() => {});
  render(<Navbar />, container);
});
