This commit is contained in:
Wojtek Turyn 2015-10-15 10:44:26 +02:00
parent 37a84ae8df
commit 5d6e236b73

View file

@ -46,7 +46,7 @@ vows.describe('nconf').addBatch({
"the required() method": {
"should throw error with missing keys": function() {
nconf.set('foo:bar:bazz', 'buzz');
assert.throws(nconf.required.bind(null, ['missingkey', 'foo:bar:bazz']), Error);
assert.throws(nconf.required.bind(nconf, ['missing', 'foo:bar:bazz']), Error);
},
"should return true if all required keys exist": function() {
nconf.set('foo:bar:bazz', 'buzz');