aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-15 14:35:26 +0800
committerkumavis <aaron@kumavis.me>2017-01-15 14:35:26 +0800
commit85634326e8b7fd077b36d4b007190da2a66d6a89 (patch)
tree8100ded20ce5ea1154360e3715e2153f64ed3c7b /test/unit
parent91e5cc0f29df68dc57edc3404d90d969e4345bf2 (diff)
downloadtangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.tar
tangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.tar.gz
tangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.tar.bz2
tangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.tar.lz
tangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.tar.xz
tangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.tar.zst
tangerine-wallet-browser-85634326e8b7fd077b36d4b007190da2a66d6a89.zip
test - clear localStorage on test start
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/notice-controller-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/notice-controller-test.js b/test/unit/notice-controller-test.js
index e953fc580..cf00daeba 100644
--- a/test/unit/notice-controller-test.js
+++ b/test/unit/notice-controller-test.js
@@ -5,14 +5,14 @@ const nock = require('nock')
const configManagerGen = require('../lib/mock-config-manager')
const NoticeController = require('../../app/scripts/notice-controller')
const STORAGE_KEY = 'metamask-persistance-key'
-// Hacking localStorage support into JSDom
-if (window.localStorage) window.localStorage.clear()
-window.localStorage = {}
describe('notice-controller', function() {
var noticeController
beforeEach(function() {
+ // simple localStorage polyfill
+ window.localStorage = {}
+ if (window.localStorage.clear) window.localStorage.clear()
let configManager = configManagerGen()
noticeController = new NoticeController({
configManager: configManager,