From a3d65d10f6bf58b7baab7f12864cb90c3d353da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 23 Mar 2017 16:45:24 +0300 Subject: [PATCH] fix test again --- test/user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/user.js b/test/user.js index 2ef1ed44e3..f954229864 100644 --- a/test/user.js +++ b/test/user.js @@ -925,8 +925,10 @@ describe('User', function () { socketUser.setModerationNote({ uid: adminUid }, { uid: testUid, note: 'this is a test user' }, function (err) { assert.ifError(err); db.getSortedSetRevRange('uid:' + testUid + ':moderation:notes', 0, 0, function (err, notes) { - notes = JSON.parse(notes); assert.ifError(err); + notes = notes.map(function (noteData) { + return JSON.parse(noteData); + }); assert.equal(notes[0].note, 'this is a test user'); assert.equal(notes[0].uid, adminUid); assert(notes[0].timestamp);