From c4eb1c92a8944ca2db82744ae6a1247f1ccfbc14 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 12 Aug 2016 02:46:19 +0300 Subject: [PATCH] fix some tests --- tests/database/sorted.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/database/sorted.js b/tests/database/sorted.js index 5c34c380b8..dac17243ea 100644 --- a/tests/database/sorted.js +++ b/tests/database/sorted.js @@ -54,7 +54,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRange('sortedSetTest1', 0, 0, function(err, value) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.equal(value, 'value1'); + assert.deepStrictEqual(value, ['value1']); done(); }); }); @@ -63,7 +63,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRange('sortedSetTest1', 0, -1, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, ['value1', 'value2', 'value3']); + assert.deepStrictEqual(values, ['value1', 'value2', 'value3']); done(); }); }); @@ -74,7 +74,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRevRange('sortedSetTest1', 0, 0, function(err, value) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.equal(value, 'value3'); + assert.deepStrictEqual(value, ['value3']); done(); }); }); @@ -83,7 +83,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRevRange('sortedSetTest1', 0, -1, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, ['value3', 'value2', 'value1']); + assert.deepStrictEqual(values, ['value3', 'value2', 'value1']); done(); }); }); @@ -94,7 +94,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRangeWithScores('sortedSetTest1', 0, -1, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, [{value: 'value1', score: 1}, {value: 'value2', score: 2}, {value: 'value3', score: 3}]); + assert.deepStrictEqual(values, [{value: 'value1', score: 1}, {value: 'value2', score: 2}, {value: 'value3', score: 3}]); done(); }); }); @@ -105,7 +105,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRevRangeWithScores('sortedSetTest1', 0, -1, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, [{value: 'value3', score: 3}, {value: 'value2', score: 2}, {value: 'value1', score: 1}]); + assert.deepStrictEqual(values, [{value: 'value3', score: 3}, {value: 'value2', score: 2}, {value: 'value1', score: 1}]); done(); }); }); @@ -116,7 +116,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRangeByScore('sortedSetTest1', 0, -1, '-inf', 2, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, ['value1', 'value2']); + assert.deepStrictEqual(values, ['value1', 'value2']); done(); }); }); @@ -127,7 +127,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRevRangeByScore('sortedSetTest1', 0, -1, '+inf', 2, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, ['value3', 'value2']); + assert.deepStrictEqual(values, ['value3', 'value2']); done(); }); }); @@ -138,7 +138,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRangeByScoreWithScores('sortedSetTest1', 0, -1, '-inf', 2, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, [{value: 'value1', score: 1}, {value: 'value2', score: 2}]); + assert.deepStrictEqual(values, [{value: 'value1', score: 1}, {value: 'value2', score: 2}]); done(); }); }); @@ -149,7 +149,7 @@ describe('Sorted Set methods', function() { db.getSortedSetRevRangeByScoreWithScores('sortedSetTest1', 0, -1, '+inf', 2, function(err, values) { assert.equal(err, null); assert.equal(arguments.length, 2); - assert.deepEqual(values, [{value: 'value3', score: 3}, {value: 'value2', score: 2}]); + assert.deepStrictEqual(values, [{value: 'value3', score: 3}, {value: 'value2', score: 2}]); done(); }); });