[fix test] Fix bad test assertion
This commit is contained in:
parent
6a6e092062
commit
464af417fe
1 changed files with 10 additions and 2 deletions
|
@ -81,7 +81,11 @@ vows.describe('nconf').addBatch({
|
|||
"the load() method": {
|
||||
"without a callback": {
|
||||
"should respond with the merged store": function () {
|
||||
assert.deepEqual(nconf.load(), { foo: { bar: {} } });
|
||||
assert.deepEqual(nconf.load(), {
|
||||
title: 'My specific title',
|
||||
color: 'green',
|
||||
movie: 'Kill Bill'
|
||||
});
|
||||
}
|
||||
},
|
||||
"with a callback": {
|
||||
|
@ -90,7 +94,11 @@ vows.describe('nconf').addBatch({
|
|||
},
|
||||
"should respond with the merged store": function (ign, err, store) {
|
||||
assert.isNull(err);
|
||||
assert.deepEqual(store, { foo: { bar: {} } });
|
||||
assert.deepEqual(store, {
|
||||
title: 'My specific title',
|
||||
color: 'green',
|
||||
movie: 'Kill Bill'
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue