mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: tests breaking due to #8406
This commit is contained in:
@@ -591,10 +591,12 @@ describe('Post\'s', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should allow registered-users group to view diffs', function (done) {
|
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.ifError(err);
|
||||||
assert.equal(true, Array.isArray(timestamps));
|
assert.strictEqual('boolean', typeof data.editable);
|
||||||
assert.strictEqual(1, timestamps.length);
|
assert.strictEqual(false, data.editable);
|
||||||
|
assert.equal(true, Array.isArray(data.timestamps));
|
||||||
|
assert.strictEqual(1, data.timestamps.length);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user