made some suggested changes

This commit is contained in:
Kendall Werts
2020-01-23 10:08:12 -06:00
parent 268c638508
commit 85c403bef5
10 changed files with 42 additions and 41 deletions
+4 -5
View File
@@ -8,7 +8,6 @@ describe("Sync", () => {
color: "red",
icon: "briefcase",
});
await background.browser.contextualIdentities.update("firefox-container-2", {color:"purple"});
await background.browser.contextualIdentities.update("firefox-container-4", {icon:"pet"});
@@ -53,13 +52,13 @@ describe("Sync", () => {
});
}
}));
await background.browser.runtime.onStartup.addListener.yield();
// await background.browser.storage.onChanged.addListener.yield();
await nextTick();
const sync = await background.browser.storage.sync.get();
console.log(await background.browser.storage.local.get());
expect(sync.identities.length).to.equal(5);
console.log("sync", sync);
// expect(sync.length).to.equal(4);
});
});
+6 -4
View File
@@ -15,8 +15,9 @@ module.exports = {
beforeParse(window) {
window.browser.storage.local.set({
"browserActionBadgesClicked": [],
"onboarding-stage": 5,
"achievements": []
"onboarding-stage": 6,
"achievements": [],
"syncEnabled": true
});
window.browser.storage.local.set.resetHistory();
window.browser.storage.sync.clear();
@@ -37,8 +38,9 @@ module.exports = {
if (!details.localStorage) {
details.localStorage = {
"browserActionBadgesClicked": [],
"onboarding-stage": 5,
"achievements": []
"onboarding-stage": 6,
"achievements": [],
"syncEnabled": true
};
}
if (!details.syncStorage) details.syncStorage = {};