Skip to content

Commit

Permalink
test: 100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Dec 19, 2022
1 parent f611ba1 commit d69d329
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const defaults = {
}

module.exports = function (options = {}) {
/* istanbul ignore else */
if (!options.disableDefaults) {
options = { ...defaults, ...options }
}
Expand All @@ -58,6 +59,7 @@ module.exports = function (options = {}) {
}

for (const plugin in options) {
/* istanbul ignore else */
if (availablePlugins[plugin] && options[plugin] != null) {
activePlugins.push(availablePlugins[plugin](options[plugin]))
}
Expand Down

0 comments on commit d69d329

Please sign in to comment.