kopia lustrzana https://gitlab.com/rysiekpl/libresilient
gun-ipfs plugin test back from hades
rodzic
83ece2adb2
commit
c922f640a6
|
@ -0,0 +1,20 @@
|
||||||
|
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');
|
||||||
|
});
|
||||||
|
});
|
Ładowanie…
Reference in New Issue