]> Untitled Git - lemmy.git/blobdiff - api_tests/src/follow.spec.ts
Revert "Add pending, and change use specific API response for FollowCommunity…" ...
[lemmy.git] / api_tests / src / follow.spec.ts
index d75735b00e402421ff050842b3974e606c8e075f..078c382c25b07ed1955fccaa1fd17118de86a0c9 100644 (file)
@@ -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);