]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix localStorage problem in Jest 23281/head
authorTiago Melo <tspmelo@gmail.com>
Fri, 27 Jul 2018 09:51:30 +0000 (10:51 +0100)
committerTiago Melo <tspmelo@gmail.com>
Fri, 27 Jul 2018 09:52:57 +0000 (10:52 +0100)
Latest version of Jest was showing the following error:
"SecurityError: localStorage is not available for opaque origins"

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/package.json

index 5bf91fd393cbd4d27841f8ec7a8266dbe80c8f7f..6a9b914abe933032cb5954359c7a3d4b1baad4ee 100644 (file)
@@ -32,7 +32,8 @@
     ],
     "modulePathIgnorePatterns": [
       "<rootDir>/coverage/"
-    ]
+    ],
+    "testURL": "http://localhost/"
   },
   "dependencies": {
     "@angular/animations": "6.0.6",