From 4590fe61559de2af424fc92624244e364093782b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 29 Dec 2014 18:14:41 -0500 Subject: [PATCH] isMemberOfSets test --- tests/database/sets.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/database/sets.js b/tests/database/sets.js index fd2b84b556..970c49575e 100644 --- a/tests/database/sets.js +++ b/tests/database/sets.js @@ -104,6 +104,19 @@ describe('Set methods', function() { }); }); + describe('isMemberOfSets', function() { + it('should return an array of booleans', function(done) { + db.isMemberOfSets(['set1', 'testSet', 'set2', 'doesnotexist'], 'value', function(err, members) { + assert.equal(err, null, 'db.isMemberOfSets error'); + assert.equal(arguments.length, 2, 'arguments.length error'); + assert.equal(Array.isArray(members), true); + assert.deepEqual(members, [true, false, true, false]); + done(); + }); + }); + }); + + after(function() { db.flushdb();