From 322d8236d27d5ed6aef5f738eef4c3b3f149badc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 20 Apr 2018 14:15:52 -0400 Subject: [PATCH] added test for User.blocks.is, re: #6463 --- test/user.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/user.js b/test/user.js index 1b3ef100d8..bf91604514 100644 --- a/test/user.js +++ b/test/user.js @@ -1790,6 +1790,16 @@ describe('User', function () { }); }); + describe('.is()', function () { + it('should return a Boolean with blocked status for the queried uid', function (done) { + User.blocks.is(blockeeUid, 1, function (err, blocked) { + assert.ifError(err); + assert.strictEqual(blocked, true); + done(); + }); + }); + }); + describe('.list()', function () { it('should return a list of blocked uids', function (done) { User.blocks.list(1, function (err, blocked_uids) {