fix: fixed typos and nits in tests.
This commit is contained in:
parent
6486e551be
commit
b28d3d9d74
|
@ -12,7 +12,7 @@ describe("browser-polyfill", () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("do not override the global browser namespace if it already exists", () => {
|
||||
it("does not override the global browser namespace if it already exists", () => {
|
||||
const fakeChrome = {
|
||||
runtime: {lastError: null},
|
||||
};
|
||||
|
@ -22,7 +22,7 @@ describe("browser-polyfill", () => {
|
|||
|
||||
return setupTestDOMWindow(fakeChrome, fakeBrowser).then(window => {
|
||||
deepEqual(window.browser, fakeBrowser,
|
||||
"The existent browser has not been wrapped");
|
||||
"The existing browser has not been wrapped");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ const {setupTestDOMWindow} = require("./setup");
|
|||
|
||||
describe("browser-polyfill", () => {
|
||||
describe("wrapped runtime.onMessage listener", () => {
|
||||
it("do not wrap the listener if it is not a function", () => {
|
||||
it("does not wrap the listener if it is not a function", () => {
|
||||
const fakeChrome = {
|
||||
runtime: {
|
||||
lastError: null,
|
||||
|
|
Loading…
Reference in New Issue