diff --git a/src/js/background/sync.js b/src/js/background/sync.js index 847b7a1..b34ea00 100644 --- a/src/js/background/sync.js +++ b/src/js/background/sync.js @@ -1,6 +1,6 @@ const SYNC_DEBUG = false; -window.sync = { +const sync = { storageArea: { area: browser.storage.sync, @@ -308,6 +308,9 @@ window.sync = { }; +// attaching to window for use in mocha tests +window.sync = sync; + sync.init(); async function restore() {