Skip to content

Commit

Permalink
Restructure unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
corycaywood committed Mar 24, 2017
1 parent 6f7a849 commit 68fdc6a
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 219 deletions.
8 changes: 2 additions & 6 deletions lib/config/scheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@ module.exports = root(

rendering: section({
highlight: option({
parseEnv: parseValue_,
parseCli: parseValue_,
parseEnv: JSON.parse,
parseCli: JSON.parse,
validate: shouldBeBoolean,
defaultValue: true
})
})
}), {envPrefix: ENV_PREFIX}); // docpub-specific env variables prefix

function parseValue_(value) {
return JSON.parse(value);
}

0 comments on commit 68fdc6a

Please sign in to comment.