webextension-polyfill/test/test-browser-global.js

15 lines
393 B
JavaScript
Raw Normal View History

"use strict";
const {assert} = require("chai");
const {setupTestDOMWindow} = require("./setup");
describe("browser-polyfill", () => {
it("automatically wrapps chrome into a browser object", () => {
const fakeChrome = {};
return setupTestDOMWindow(fakeChrome).then(window => {
assert.equal(typeof window.browser, "object", "Got the window.browser object");
});
});
});