Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a test for the environment.

  • Loading branch information...
commit d2359d31cd5e6c2f055d1b94b0b33d69cd9b789b 1 parent d329ff6
@enyo enyo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/2-config-test.js
View
4 test/2-config-test.js
@@ -49,6 +49,10 @@ exports.ConfigTest = vows.describe('Test suite for node-config').addBatch({
assert.equal(CONFIG.AnotherModule.parm3, 'value3');
},
+ 'Loading configurations from an environment file is correct': function() {
+ assert.equal(CONFIG.Customers.dbPort, '5999');
+ },
+
'Loading prior runtime.json configurations is correct': function() {
assert.equal(CONFIG.Customers.dbName, 'override_from_runtime_json');
}
Please sign in to comment.
Something went wrong with that request. Please try again.