1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Fix domain handling and tls camelCase settings

Fixes #1106
Fixes #1103
Closes #1104
This commit is contained in:
Ruben Bridgewater
2016-10-30 21:29:35 +01:00
parent d8d0e2d3e3
commit 41d26dc0c8
5 changed files with 33 additions and 5 deletions

View File

@@ -35,12 +35,16 @@ describe('utils.js', function () {
retryStrategy: false,
nested: {
onlyContainCamelCaseOnce: true
},
tls: {
rejectUnauthorized: true
}
});
assert.strictEqual(Object.keys(a).length, 4);
assert.strictEqual(Object.keys(a).length, 5);
assert.strictEqual(a.option_one_two, true);
assert.strictEqual(a.retry_strategy, false);
assert.strictEqual(a.camel_case, true);
assert.strictEqual(a.tls.rejectUnauthorized, true);
assert.strictEqual(Object.keys(a.nested).length, 1);
});