From 36a2ac0ebde280caacee761a6871b30877bab4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 8 May 2017 21:28:06 -0400 Subject: [PATCH] add test for user settings cache issue --- test/user.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/user.js b/test/user.js index 662b82f326..943c348872 100644 --- a/test/user.js +++ b/test/user.js @@ -945,7 +945,11 @@ describe('User', function () { }; socketUser.saveSettings({ uid: testUid }, data, function (err) { assert.ifError(err); - done(); + User.getSettings(testUid, function (err, data) { + assert.ifError(err); + assert.equal(data.usePagination, true); + done(); + }); }); });