From 772de110bb1bc64925b3317b9cc810847cfa9343 Mon Sep 17 00:00:00 2001 From: indexzero Date: Thu, 31 Mar 2011 04:12:43 -0400 Subject: [PATCH] [test] More tests for nested object literals --- test/stores/redis-test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/stores/redis-test.js b/test/stores/redis-test.js index f5af468..b05d010 100644 --- a/test/stores/redis-test.js +++ b/test/stores/redis-test.js @@ -82,6 +82,14 @@ vows.describe('nconf/stores/redis').addBatch({ "should respond with the correct value": function (err, value) { assert.deepEqual(value, data.obj); } + }, + "with a nested Object value": { + topic: function (store) { + store.get('foo:object:auth', this.callback); + }, + "should respond with the correct value": function (err, value) { + assert.deepEqual(value, data.obj.auth); + } } } }