aboutsummaryrefslogtreecommitdiffstats
path: root/development/mockExtension.js
diff options
context:
space:
mode:
Diffstat (limited to 'development/mockExtension.js')
-rw-r--r--development/mockExtension.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/development/mockExtension.js b/development/mockExtension.js
deleted file mode 100644
index 634d4263a..000000000
--- a/development/mockExtension.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/* MockExtension
- *
- * A module for importing the global extension polyfiller
- * and stubbing out all the extension methods with appropriate mocks.
- */
-
-const extension = require('extensionizer')
-const noop = function () {}
-
-const apis = [
- 'alarms',
- 'bookmarks',
- 'browserAction',
- 'commands',
- 'contextMenus',
- 'cookies',
- 'downloads',
- 'events',
- 'extension',
- 'extensionTypes',
- 'history',
- 'i18n',
- 'idle',
- 'notifications',
- 'pageAction',
- 'runtime',
- 'storage',
- 'tabs',
- 'webNavigation',
- 'webRequest',
- 'windows',
-]
-
-apis.forEach(function (api) {
- extension[api] = {}
-})
-
-extension.runtime.reload = noop
-extension.tabs.create = noop
-extension.runtime.getManifest = function () {
- return {
- version: 'development',
- }
-}