Add tests for external webextensions feature

This commit is contained in:
stoically
2018-02-10 00:50:29 +01:00
parent 61da6b5e99
commit 6e45532f58
2 changed files with 79 additions and 0 deletions
+12
View File
@@ -8,6 +8,9 @@ module.exports = () => {
onMessage: {
addListener: sinon.stub(),
},
onMessageExternal: {
addListener: sinon.stub(),
},
sendMessage: sinon.stub().resolves(),
},
webRequest: {
@@ -65,6 +68,15 @@ module.exports = () => {
setBadgeBackgroundColor: sinon.stub(),
setBadgeText: sinon.stub()
},
management: {
get: sinon.stub(),
onInstalled: {
addListener: sinon.stub()
},
onUninstalled: {
addListener: sinon.stub()
}
},
extension: {
getURL: sinon.stub().returns("moz-extension://multi-account-containers/confirm-page.html")
}