master
Wojtek Turyn 2015-10-15 10:44:26 +02:00
parent 37a84ae8df
commit 5d6e236b73
1 changed files with 1 additions and 1 deletions

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');