mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-05-17 09:22:38 +00:00
fix api test
This commit is contained in:
parent
1e880cc1df
commit
ea02b345a9
|
@ -26,13 +26,10 @@ test('Follow federated community', async () => {
|
|||
betaCommunity.community.id
|
||||
);
|
||||
|
||||
// Wait for it to accept on the alpha side ( follows are async )
|
||||
await delay();
|
||||
|
||||
// Make sure the follow response went through
|
||||
expect(follow.community_view.community.local).toBe(false);
|
||||
expect(follow.community_view.community.name).toBe('main');
|
||||
expect(follow.community_view.subscribed).toBe(SubscribedType.Pending);
|
||||
expect(follow.community_view.subscribed).toBe(SubscribedType.Subscribed);
|
||||
|
||||
// Check it from local
|
||||
let site = await getSite(alpha);
|
||||
|
|
Loading…
Reference in a new issue