fixed
This commit is contained in:
parent
37a84ae8df
commit
5d6e236b73
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue