2011-11-20 21:21:09 +00:00
|
|
|
/*
|
|
|
|
* env-test.js: Tests for the nconf env store.
|
|
|
|
*
|
2011-11-24 05:33:08 +00:00
|
|
|
* (C) 2011, Nodejitsu Inc.
|
2011-11-20 21:21:09 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
var vows = require('vows'),
|
|
|
|
assert = require('assert'),
|
|
|
|
helpers = require('../helpers'),
|
|
|
|
nconf = require('../../lib/nconf');
|
|
|
|
|
|
|
|
vows.describe('nconf/stores/env').addBatch({
|
2011-11-23 02:22:09 +00:00
|
|
|
"An instance of nconf.Env": {
|
|
|
|
topic: new nconf.Env(),
|
2011-11-20 21:21:09 +00:00
|
|
|
"should have the correct methods defined": function (env) {
|
|
|
|
assert.isFunction(env.loadSync);
|
|
|
|
assert.isFunction(env.loadEnv);
|
|
|
|
assert.isArray(env.options);
|
|
|
|
assert.lengthOf(env.options, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).export(module);
|