diff --git a/test/test-async-functions.js b/test/test-async-functions.js index cf47816..2076e41 100644 --- a/test/test-async-functions.js +++ b/test/test-async-functions.js @@ -10,7 +10,7 @@ describe("browser-polyfill", () => { it("returns a promise which resolves to the callback parameters", () => { const fakeChrome = { alarms: {clear: sinon.stub()}, - runtime: {lastError: undefined}, + runtime: {lastError: null}, }; return setupTestDOMWindow(fakeChrome).then(window => { fakeChrome.alarms.clear diff --git a/test/test-runtime-onMessage.js b/test/test-runtime-onMessage.js index 08f9a03..ca919f2 100644 --- a/test/test-runtime-onMessage.js +++ b/test/test-runtime-onMessage.js @@ -12,7 +12,7 @@ describe("browser-polyfill", () => { const fakeChrome = { runtime: { - lastError: undefined, + lastError: null, onMessage: { addListener: sinon.spy(), hasListener: sinon.stub(), @@ -55,7 +55,7 @@ describe("browser-polyfill", () => { it("sends the returned value as a message response", () => { const fakeChrome = { runtime: { - lastError: undefined, + lastError: null, onMessage: { addListener: sinon.spy(), },