mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 07:20:27 +01:00
test: update test for toPid logic to reflect that toPid stays even if parent is purged
This commit is contained in:
@@ -327,7 +327,7 @@ describe('Topic\'s', () => {
|
|||||||
replies = await apiPosts.getReplies({ uid: fooUid }, { pid: reply1.pid });
|
replies = await apiPosts.getReplies({ uid: fooUid }, { pid: reply1.pid });
|
||||||
assert.strictEqual(replies, null);
|
assert.strictEqual(replies, null);
|
||||||
toPid = await posts.getPostField(reply2.pid, 'toPid');
|
toPid = await posts.getPostField(reply2.pid, 'toPid');
|
||||||
assert.strictEqual(toPid, null);
|
assert.strictEqual(parseInt(toPid, 10), parseInt(reply1.pid, 10));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user