2011-11-20 21:21:09 +00:00
|
|
|
/*
|
|
|
|
* argv-test.js: Tests for the nconf argv store.
|
|
|
|
*
|
|
|
|
* (C) 2011, Charlie Robbins
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
var vows = require('vows'),
|
|
|
|
assert = require('assert'),
|
|
|
|
helpers = require('../helpers'),
|
|
|
|
nconf = require('../../lib/nconf');
|
|
|
|
|
|
|
|
vows.describe('nconf/stores/argv').addBatch({
|
2011-11-23 02:22:09 +00:00
|
|
|
"An instance of nconf.Argv": {
|
|
|
|
topic: new nconf.Argv(),
|
2011-11-20 21:21:09 +00:00
|
|
|
"should have the correct methods defined": function (argv) {
|
|
|
|
assert.isFunction(argv.loadSync);
|
|
|
|
assert.isFunction(argv.loadArgv);
|
|
|
|
assert.isFalse(argv.options);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).export(module);
|