Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 13, 2024
1 parent c8c90b8 commit 6493adc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ Liftoff.prototype.buildEnvironment = function (opts) {

var configPathOverride = arrayFind(Object.keys(config), function (key) {
var cfg = config[key];
console.log(cfg);
if (Object.prototype.hasOwnProperty.call(cfg, this.configName)) {
return cfg[this.configName]
console.log(cfg[this.configName]);
return cfg[this.configName];
}
});

Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ describe('Liftoff', function () {
);
});

it('overrides the configPath if the configName key exists in the config', function (done) {
it.only('overrides the configPath if the configName key exists in the config', function (done) {
var app = new Liftoff({
name: 'myapp',
configFiles: {
Expand Down

0 comments on commit 6493adc

Please sign in to comment.