*ipfs plugins need more work to even start handling testing

merge-requests/9/merge
Michał 'rysiek' Woźniak 2021-08-25 03:28:44 +00:00
rodzic dc29220baf
commit 8054e8870b
2 zmienionych plików z 0 dodań i 40 usunięć

Wyświetl plik

@ -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');
});
});

Wyświetl plik

@ -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');
});
});