isMemberOfSets test

v1.18.x
barisusakli 10 years ago
parent a529c3b179
commit 4590fe6155

@ -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() { after(function() {
db.flushdb(); db.flushdb();

Loading…
Cancel
Save