kopia lustrzana https://gitlab.com/rysiekpl/libresilient
21 wiersze
564 B
JavaScript
21 wiersze
564 B
JavaScript
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');
|
|
});
|
|
});
|