diff --git a/__tests__/plugins/alt-fetch.test.js b/__tests__/plugins/alt-fetch.test.js index 1f9b84d..603854c 100644 --- a/__tests__/plugins/alt-fetch.test.js +++ b/__tests__/plugins/alt-fetch.test.js @@ -51,7 +51,7 @@ describe("plugin: alt-fetch", () => { } }) - test("it should register in LibResilientPlugins", () => { + test("it should register in LibResilientPluginConstructors", () => { require("../../plugins/alt-fetch.js"); expect(LibResilientPluginConstructors.get('alt-fetch')().name).toEqual('alt-fetch'); }); diff --git a/__tests__/plugins/fetch.test.js b/__tests__/plugins/fetch.test.js index 5de747d..68d899c 100644 --- a/__tests__/plugins/fetch.test.js +++ b/__tests__/plugins/fetch.test.js @@ -31,7 +31,7 @@ describe("plugin: fetch", () => { } } }) - test("it should register in LibResilientPlugins", () => { + test("it should register in LibResilientPluginConstructors", () => { require("../../plugins/fetch.js"); expect(LibResilientPluginConstructors.get('fetch')().name).toEqual('fetch'); }); diff --git a/plugins/alt-fetch.js b/plugins/alt-fetch.js index 78f2f60..6cd984c 100644 --- a/plugins/alt-fetch.js +++ b/plugins/alt-fetch.js @@ -17,8 +17,8 @@ LRPC.set(pluginName, (LR, init={})=>{ /* - * plugin config settings - */ + * plugin config settings + */ // sane defaults let defaultConfig = { @@ -60,8 +60,8 @@ /** - * getting content using regular HTTP(S) fetch() - */ + * getting content using regular HTTP(S) fetch() + */ let fetchContentFromAlternativeEndpoints = (url) => { // we're going to try a random endpoint and building an URL of the form: diff --git a/plugins/fetch.js b/plugins/fetch.js index de6a0b5..660fcca 100644 --- a/plugins/fetch.js +++ b/plugins/fetch.js @@ -6,18 +6,15 @@ * this plugin does not implement any push method */ -/* - * no polluting of the global namespace please - */ - +// no polluting of the global namespace please (function(LRPC){ // this never changes const pluginName = "fetch" LRPC.set(pluginName, (LR, init={})=>{ /* - * plugin config settings - */ + * plugin config settings + */ // sane defaults let defaultConfig = {}