From c811d8b7e87eae1f2776d9d969d0f3fdfa9fdfec Mon Sep 17 00:00:00 2001
From: esikkala <esko.ikkala@aalto.fi>
Date: Sun, 12 Jan 2020 15:02:13 +0200
Subject: [PATCH] Standard: add jest

---
 package.json                            | 4 +++-
 src/client/containers/SemanticPortal.js | 2 --
 src/client/setupTests.js                | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/package.json b/package.json
index 73dbd4f7..dbb73d29 100644
--- a/package.json
+++ b/package.json
@@ -85,6 +85,8 @@
   },
   "standard": {
     "parser": "babel-eslint",
-    "env": [ "jest "]
+    "env": {
+      "jest": true
+    }
   }
 }
diff --git a/src/client/containers/SemanticPortal.js b/src/client/containers/SemanticPortal.js
index fc112673..d97b4b64 100644
--- a/src/client/containers/SemanticPortal.js
+++ b/src/client/containers/SemanticPortal.js
@@ -498,7 +498,6 @@ SemanticPortal.propTypes = {
   theme: PropTypes.object.isRequired,
   options: PropTypes.object.isRequired,
   error: PropTypes.object.isRequired,
-  // browser: PropTypes.object.isRequired,
   manuscripts: PropTypes.object.isRequired,
   manuscriptsFacets: PropTypes.object.isRequired,
   manuscriptsFacetsConstrainSelf: PropTypes.object.isRequired,
@@ -512,7 +511,6 @@ SemanticPortal.propTypes = {
   placesFacets: PropTypes.object.isRequired,
   collections: PropTypes.object.isRequired,
   expressions: PropTypes.object.isRequired,
-  clientSideFacetedSearch: PropTypes.object.isRequired,
   animationValue: PropTypes.array.isRequired,
   fetchResults: PropTypes.func.isRequired,
   fetchResultCount: PropTypes.func.isRequired,
diff --git a/src/client/setupTests.js b/src/client/setupTests.js
index 0d29596b..4fa3a18f 100644
--- a/src/client/setupTests.js
+++ b/src/client/setupTests.js
@@ -1,7 +1,7 @@
-import { configure } from 'enzyme';
-import Adapter from 'enzyme-adapter-react-16';
+import { configure } from 'enzyme'
+import Adapter from 'enzyme-adapter-react-16'
 
-configure({ adapter: new Adapter() });
+configure({ adapter: new Adapter() })
 
 const localStorageMock = {
   getItem: jest.fn(),
@@ -9,4 +9,4 @@ const localStorageMock = {
   clear: jest.fn()
 }
 
-global.localStorage = localStorageMock;
+global.localStorage = localStorageMock
-- 
GitLab