diff --git a/__tests__/plugins/fetch.test.js b/__tests__/plugins/fetch.test.js index b88ab93..0ee7d85 100644 --- a/__tests__/plugins/fetch.test.js +++ b/__tests__/plugins/fetch.test.js @@ -1,7 +1,11 @@ -var self = self || {} +var self = self || {}; -if (!Array.isArray(self.LibResilientPlugins)) { - self.LibResilientPlugins = new Array() +self.LibResilientPlugins = new Array() + +self.LibResilientConfig = { + plugins: { + 'fetch':{} + } } const fetchPlugin = require("../../plugins/fetch.js"); diff --git a/plugins/fetch.js b/plugins/fetch.js index 8c688b7..9fc1541 100644 --- a/plugins/fetch.js +++ b/plugins/fetch.js @@ -2,7 +2,7 @@ |* === Regular HTTP(S) fetch() plugin === *| \* ========================================================================= */ -var self = self || {} +var self = self || {}; /** * this plugin does not implement any push method