kopia lustrzana https://gitlab.com/rysiekpl/libresilient
*ipfs plugins need more work to even start handling testing
rodzic
dc29220baf
commit
8054e8870b
|
@ -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');
|
||||
});
|
||||
});
|
|
@ -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');
|
||||
});
|
||||
});
|
Ładowanie…
Reference in New Issue