[test] Added failing test to illustrate #65

This commit is contained in:
indexzero 2012-12-20 14:01:04 -05:00
parent bcbaf3a133
commit f19f0b6c39

View file

@ -25,6 +25,7 @@ vows.describe('nconf/stores/memory').addBatch({
"the get() method": { "the get() method": {
"should respond with the correct value": function (store) { "should respond with the correct value": function (store) {
assert.equal(store.get('foo:bar:bazz'), 'buzz'); assert.equal(store.get('foo:bar:bazz'), 'buzz');
assert.isUndefined(store.get('foo:bar:bazz:buzz:bizz'));
assert.equal(store.get('falsy:number'), 0); assert.equal(store.get('falsy:number'), 0);
assert.equal(store.get('falsy:string'), ''); assert.equal(store.get('falsy:string'), '');
assert.equal(store.get('falsy:boolean'), false); assert.equal(store.get('falsy:boolean'), false);