fix: fixed typos and nits in tests.

This commit is contained in:
Luca Greco 2016-11-02 21:31:56 +01:00
parent 6486e551be
commit b28d3d9d74
2 changed files with 3 additions and 3 deletions

View File

@ -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 = { const fakeChrome = {
runtime: {lastError: null}, runtime: {lastError: null},
}; };
@ -22,7 +22,7 @@ describe("browser-polyfill", () => {
return setupTestDOMWindow(fakeChrome, fakeBrowser).then(window => { return setupTestDOMWindow(fakeChrome, fakeBrowser).then(window => {
deepEqual(window.browser, fakeBrowser, deepEqual(window.browser, fakeBrowser,
"The existent browser has not been wrapped"); "The existing browser has not been wrapped");
}); });
}); });

View File

@ -7,7 +7,7 @@ const {setupTestDOMWindow} = require("./setup");
describe("browser-polyfill", () => { describe("browser-polyfill", () => {
describe("wrapped runtime.onMessage listener", () => { 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 = { const fakeChrome = {
runtime: { runtime: {
lastError: null, lastError: null,