15 lines
393 B
JavaScript
15 lines
393 B
JavaScript
"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");
|
|
});
|
|
});
|
|
});
|