From 8054e8870be208e0c6e9b97d43cb4135fbd6abc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=27rysiek=27=20Wo=C5=BAniak?= Date: Wed, 25 Aug 2021 03:28:44 +0000 Subject: [PATCH] *ipfs plugins need more work to even start handling testing --- __tests__/plugins/gun-ipfs.test.js | 20 -------------------- __tests__/plugins/ipns-ipfs.test.js | 20 -------------------- 2 files changed, 40 deletions(-) delete mode 100644 __tests__/plugins/gun-ipfs.test.js delete mode 100644 __tests__/plugins/ipns-ipfs.test.js diff --git a/__tests__/plugins/gun-ipfs.test.js b/__tests__/plugins/gun-ipfs.test.js deleted file mode 100644 index 5f411e3..0000000 --- a/__tests__/plugins/gun-ipfs.test.js +++ /dev/null @@ -1,20 +0,0 @@ -const makeServiceWorkerEnv = require('service-worker-mock'); - -describe("plugin: gun-ipfs", () => { - beforeEach(() => { - Object.assign(global, makeServiceWorkerEnv()); - jest.resetModules(); - self.LibResilientPlugins = new Array() - self.LibResilientConfig = { - plugins: { - 'gun-ipfs':{ - 'gunPubkey': 'stub' - } - } - } - }) - test("it should register in LibResilientPlugins", () => { - require("../../plugins/gun-ipfs.js"); - expect(self.LibResilientPlugins[0].name).toEqual('gun-ipfs'); - }); -}); diff --git a/__tests__/plugins/ipns-ipfs.test.js b/__tests__/plugins/ipns-ipfs.test.js deleted file mode 100644 index e85eede..0000000 --- a/__tests__/plugins/ipns-ipfs.test.js +++ /dev/null @@ -1,20 +0,0 @@ -const makeServiceWorkerEnv = require('service-worker-mock'); - -describe("plugin: ipns-ipfs", () => { - beforeEach(() => { - Object.assign(global, makeServiceWorkerEnv()); - jest.resetModules(); - self.LibResilientPlugins = new Array() - self.LibResilientConfig = { - plugins: { - 'ipns-ipfs':{ - 'ipnsPubkey': 'stub' - } - } - } - }) - test("it should register in LibResilientPlugins", () => { - require("../../plugins/ipns-ipfs.js"); - expect(self.LibResilientPlugins[0].name).toEqual('ipns-ipfs'); - }); -});