mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-30 11:39:26 -07:00
fix: convert syntax from CommonJS to ES6
This commit is contained in:
parent
ce59c1c3ce
commit
ca469ec2c6
1 changed files with 3 additions and 3 deletions
|
@ -3,10 +3,10 @@ import HomeLoggedOut from "../../src/components/HomeLoggedOut";
|
|||
import { Router } from "react-router-dom";
|
||||
import { createMemoryHistory } from "history";
|
||||
import { act } from "react-dom/test-utils";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
var axios = require("axios");
|
||||
var MockAdapter = require("axios-mock-adapter");
|
||||
var mock = new MockAdapter(axios);
|
||||
let mock = new MockAdapter(axios);
|
||||
|
||||
describe("HomeLoggedOut", () => {
|
||||
test("renders HomeLoggedOut when authentication is enabled", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue