summaryrefslogtreecommitdiffstats
path: root/browser/components/pocket/test/unit/panels/head.js
blob: f52def32da673db3458d195a25eecfe987909bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { sinon } = ChromeUtils.import("resource://testing-common/Sinon.jsm");

const testGlobal = {
  PKT_PANEL_OVERLAY: class {
    create() {}
  },
  RPMRemoveMessageListener: () => {},
  RPMAddMessageListener: () => {},
  RPMSendAsyncMessage: () => {},
  window: {},
  self: {},
};

Services.scriptloader.loadSubScript(
  "chrome://pocket/content/panels/js/vendor.bundle.js",
  testGlobal
);

Services.scriptloader.loadSubScript(
  "chrome://pocket/content/panels/js/main.bundle.js",
  testGlobal
);