From 668be6224b5db22e6c55afbb4bc676b7d1a149d9 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sat, 4 Apr 2020 17:06:06 +0300 Subject: add fake chrome.runtime.onMessage.removeListener --- test/test-database.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-database.js b/test/test-database.js index c4bfb793..bab15aa4 100644 --- a/test/test-database.js +++ b/test/test-database.js @@ -27,7 +27,8 @@ require('fake-indexeddb/auto'); const chrome = { runtime: { onMessage: { - addListener() { /* NOP */ } + addListener() { /* NOP */ }, + removeListener() { /* NOP */ } }, getURL(path2) { return url.pathToFileURL(path.join(__dirname, '..', 'ext', path2.replace(/^\//, ''))); -- cgit v1.2.3