- expect(betaComment.community.local).toBe(true);
- expect(betaComment.creator.local).toBe(false);
- expect(betaComment.counts.score).toBe(0);
+ expect(betaComment?.community.local).toBe(true);
+ expect(betaComment?.creator.local).toBe(false);
+ expect(betaComment?.counts.score).toBe(0);
+
+ // Make sure that comment is unliked on gamma, downstream peer
+ // This is testing replication from remote-home-remote (alpha-beta-gamma)
+ let gammaComment = (
+ await resolveComment(gamma, commentRes.comment_view.comment)
+ ).comment;
+ expect(gammaComment).toBeDefined();
+ expect(gammaComment?.community.local).toBe(false);
+ expect(gammaComment?.creator.local).toBe(false);
+ expect(gammaComment?.counts.score).toBe(0);