From be79b85526df4207c61b2543fceaa2237fb39255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 16 Jun 2017 15:02:06 -0400 Subject: [PATCH] fix test --- test/topics.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/topics.js b/test/topics.js index 3aed603c95..541000dd52 100644 --- a/test/topics.js +++ b/test/topics.js @@ -1693,9 +1693,11 @@ describe('Topic\'s', function () { assert.ifError(err); posts.edit({ pid: result.postData.pid, uid: uid, content: 'edited content', tags: ['tag1', 'tag2'] }, function (err, result) { assert.ifError(err); - assert.deepEqual(result.topic.tags.map(function (tag) { + var tags = result.topic.tags.map(function (tag) { return tag.value; - }), ['tag1', 'tag2']); + }); + assert(tags.indexOf('tag1') !== -1); + assert(tags.indexOf('tag2') !== -1); done(); }); });