/* jshint expr: true */
-var expect = chai.expect;
+const expect = chai.expect;
import * as WebUtil from '../app/webutil.js';
describe('settings', function () {
describe('localStorage', function() {
- var chrome = window.chrome;
+ let chrome = window.chrome;
before(function() {
chrome = window.chrome;
window.chrome = null;
window.chrome = chrome;
});
- var origLocalStorage;
+ let origLocalStorage;
beforeEach(function() {
origLocalStorage = Object.getOwnPropertyDescriptor(window, "localStorage");
if (origLocalStorage === undefined) {
});
describe('chrome.storage', function() {
- var chrome = window.chrome;
- var settings = {};
+ let chrome = window.chrome;
+ let settings = {};
before(function() {
chrome = window.chrome;
window.chrome = {
window.chrome = chrome;
});
- var csSandbox = sinon.createSandbox();
+ const csSandbox = sinon.createSandbox();
beforeEach(function() {
settings = {};