fix: convert syntax from CommonJS to ES6

This commit is contained in:
David Laganiere 2023-01-04 08:57:15 -05:00
parent ce59c1c3ce
commit ca469ec2c6
No known key found for this signature in database
GPG key ID: 18C4B80581C28747

View file

@ -3,10 +3,10 @@ import HomeLoggedOut from "../../src/components/HomeLoggedOut";
import { Router } from "react-router-dom"; import { Router } from "react-router-dom";
import { createMemoryHistory } from "history"; import { createMemoryHistory } from "history";
import { act } from "react-dom/test-utils"; import { act } from "react-dom/test-utils";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
var axios = require("axios"); let mock = new MockAdapter(axios);
var MockAdapter = require("axios-mock-adapter");
var mock = new MockAdapter(axios);
describe("HomeLoggedOut", () => { describe("HomeLoggedOut", () => {
test("renders HomeLoggedOut when authentication is enabled", () => { test("renders HomeLoggedOut when authentication is enabled", () => {