Skip to content

Commit

Permalink
fix: using "apiaryApiKey" and "apiaryApiName" from dredd.yml config
Browse files Browse the repository at this point in the history
  • Loading branch information
skazancev committed May 31, 2019
1 parent a46010c commit 24b5a40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/CLI.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ ${packageData.name} v${packageData.version} \
if (!cliConfig.path) { cliConfig.path = []; }
cliConfig.path.push(this.argv._[0]);

cliConfig.custom = this.custom;
// Merge "this.custom" which is an input of CLI constructor
// (used for internal testing), and "cliConfig" which is a result
// of merge upon "argv". Otherwise "custom" key from "dredd.yml"
// is always overridden by "this.custom".
cliConfig.custom = R.mergeDeepRight(this.custom, cliConfig.custom || {});

return cliConfig;
}
Expand Down

0 comments on commit 24b5a40

Please sign in to comment.