From 673a44815218e232ec21c9094148234f2e61acab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 25 Dec 2019 22:13:57 +0000 Subject: [PATCH] fix(tests): use require instead of import To fix lint tests --- ui/src/setupTests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/setupTests.js b/ui/src/setupTests.js index 908477a8d..7f5f6cfd4 100644 --- a/ui/src/setupTests.js +++ b/ui/src/setupTests.js @@ -7,10 +7,10 @@ import { FetchRetryConfig } from "Common/Fetch"; Enzyme.configure({ adapter: new Adapter() }); // favico.js needs canvas -import("jest-canvas-mock"); +require("jest-canvas-mock"); // used to mock current time since we render moment.fromNow() in some places -import("jest-date-mock"); +require("jest-date-mock"); // fetch is used in multiple places to interact with Go backend // or upstream Alertmanager API