From d5578c990651e65ccbf67ed417c61835285c0c02 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 15 Jun 2020 14:09:44 -0400 Subject: [PATCH] fix: tests breaking due to #8406 --- test/posts.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/posts.js b/test/posts.js index 15a8e76f48..936c32dd9d 100644 --- a/test/posts.js +++ b/test/posts.js @@ -591,10 +591,12 @@ describe('Post\'s', function () { }); it('should allow registered-users group to view diffs', function (done) { - socketPosts.getDiffs({ uid: 1 }, { pid: 1 }, function (err, timestamps) { + socketPosts.getDiffs({ uid: 1 }, { pid: 1 }, function (err, data) { assert.ifError(err); - assert.equal(true, Array.isArray(timestamps)); - assert.strictEqual(1, timestamps.length); + assert.strictEqual('boolean', typeof data.editable); + assert.strictEqual(false, data.editable); + assert.equal(true, Array.isArray(data.timestamps)); + assert.strictEqual(1, data.timestamps.length); done(); }); });