Skip to content

Commit

Permalink
[add] Smart catch on loading config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stan Gumeniuk committed Apr 4, 2016
1 parent 940b51c commit 532a7a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mconf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var mockery = require('mockery');
var CONST_GLOBAL_ENV_NAME = 'NODE_ENV';

var default_path = '../config';
var default_path_to_mock_config = './test/configs';
var default_path_to_mock_config = './test_mocks/configs';
var default_available_config = ['production', 'rc', 'develop'];

describe('services/cache', function () {
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('services/cache', function () {

assert.throw(function () {
config.getConfig()
}, 'Mconf: some error in your config "develop" not found in ./test/configs/develop');
}, 'Mconf: some error in your config "develop" not found in ./test_mocks/configs/develop');
});


Expand Down
File renamed without changes.

0 comments on commit 532a7a2

Please sign in to comment.