X-Git-Url: http://these/git/?a=blobdiff_plain;f=api_tests%2Fsrc%2Ffollow.spec.ts;h=078c382c25b07ed1955fccaa1fd17118de86a0c9;hb=eafb3869f2f460e1703234f6041d3c5f1ef4d30c;hp=d75735b00e402421ff050842b3974e606c8e075f;hpb=3af4a27a889032e000b231d4baac7e9c86bee4fd;p=lemmy.git diff --git a/api_tests/src/follow.spec.ts b/api_tests/src/follow.spec.ts index d75735b0..078c382c 100644 --- a/api_tests/src/follow.spec.ts +++ b/api_tests/src/follow.spec.ts @@ -25,9 +25,8 @@ test('Follow federated community', async () => { ); // Make sure the follow response went through - expect(follow.community_follower_view.community.local).toBe(false); - expect(follow.community_follower_view.community.name).toBe('main'); - expect(follow.community_follower_view.pending).toBe(true); + expect(follow.community_view.community.local).toBe(false); + expect(follow.community_view.community.name).toBe('main'); // Check it from local let site = await getSite(alpha); @@ -38,7 +37,7 @@ test('Follow federated community', async () => { // Test an unfollow let unfollow = await followCommunity(alpha, false, remoteCommunityId); - expect(unfollow.community_follower_view).toBeNull() + expect(unfollow.community_view.community.local).toBe(false); // Make sure you are unsubbed locally let siteUnfollowCheck = await getSite(alpha);