fixed mocha tests

This commit is contained in:
Kendall Werts
2020-02-24 16:14:17 -06:00
parent db46e71516
commit 694b0f7b47
9 changed files with 81 additions and 66 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ const messageHandler = {
switch (m.method) {
case "getShortcuts":
console.log(identityState.keyboardShortcut);
console.log("getShortcuts", identityState.keyboardShortcut);
response = identityState.keyboardShortcut;
break;
case "setShortcut":
@@ -91,7 +91,7 @@ const messageHandler = {
);
break;
}
console.log(response);
console.log(m.method, "response", response);
return response;
});
+2 -2
View File
@@ -39,8 +39,8 @@ async function setupOptions() {
}
async function setupContainerShortcutSelects () {
const keyboardShortcut = browser.runtime.sendMessage({method: "getShortcuts"});
console.log(keyboardShortcut);
const keyboardShortcut = await browser.runtime.sendMessage({method: "getShortcuts"});
// console.log(keyboardShortcut);
const identities = await browser.contextualIdentities.query({});
const fragment = document.createDocumentFragment();
const noneOption = document.createElement("option");
-1
View File
@@ -984,7 +984,6 @@ Logic.registerPanel(REOPEN_IN_CONTAINER_PICKER, {
document.getElementById("picker-title").textContent = "Reopen This Site in";
const fragment = document.createDocumentFragment();
const currentTab = await Utils.currentTab();
console.log(currentTab);
const pickedFunction = function (identity) {
const newUserContextId = Utils.userContextId(identity.cookieStoreId);
Utils.reloadInContainer(