Skip to content

Commit

Permalink
Ensure optional key is in the config
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Koch committed Jun 4, 2016
1 parent 5fe0d84 commit 5967f2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/parse-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const path = require('path');

const defaultConfiguration = {
baseUrl: '/',
outputMode: 'directory'
outputMode: 'directory',
renderDrafts: false
};

const requiredKeys = [
Expand Down
3 changes: 2 additions & 1 deletion test/parse-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const validConfig = {
// Optional keys added if not present
const optionalKeys = [
'baseUrl',
'outputMode'
'outputMode',
'renderDrafts'
];

/* Tests */
Expand Down

0 comments on commit 5967f2a

Please sign in to comment.