test: update test for toPid logic to reflect that toPid stays even if parent is purged

This commit is contained in:
Julian Lam
2025-10-31 09:44:06 -04:00
parent 9d3e817960
commit 98a1101d40

View File

@@ -327,7 +327,7 @@ describe('Topic\'s', () => {
replies = await apiPosts.getReplies({ uid: fooUid }, { pid: reply1.pid });
assert.strictEqual(replies, null);
toPid = await posts.getPostField(reply2.pid, 'toPid');
assert.strictEqual(toPid, null);
assert.strictEqual(parseInt(toPid, 10), parseInt(reply1.pid, 10));
});
});