mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 07:41:20 +00:00
Trying to fix api tests 2
This commit is contained in:
parent
5698dd7771
commit
500ca15893
1 changed files with 9 additions and 8 deletions
|
@ -285,14 +285,6 @@ test('Search for a post', async () => {
|
||||||
expect(betaPost.post.name).toBeDefined();
|
expect(betaPost.post.name).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('A and G subscribe to B (center) A posts, it gets announced to G', async () => {
|
|
||||||
let postRes = await createPost(alpha, betaCommunity.community.id);
|
|
||||||
expect(postRes.post_view.post).toBeDefined();
|
|
||||||
|
|
||||||
let betaPost = (await resolvePost(gamma, postRes.post_view.post)).post;
|
|
||||||
expect(betaPost.post.name).toBeDefined();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('Enforce site ban for federated user', async () => {
|
test('Enforce site ban for federated user', async () => {
|
||||||
// create a test user
|
// create a test user
|
||||||
let alphaUserJwt = await registerUser(alpha);
|
let alphaUserJwt = await registerUser(alpha);
|
||||||
|
@ -378,6 +370,15 @@ test('Enforce community ban for federated user', async () => {
|
||||||
expect(searchBeta2.posts[0]).toBeDefined();
|
expect(searchBeta2.posts[0]).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
test('A and G subscribe to B (center) A posts, it gets announced to G', async () => {
|
||||||
|
let postRes = await createPost(alpha, betaCommunity.community.id);
|
||||||
|
expect(postRes.post_view.post).toBeDefined();
|
||||||
|
|
||||||
|
let betaPost = (await resolvePost(gamma, postRes.post_view.post)).post;
|
||||||
|
expect(betaPost.post.name).toBeDefined();
|
||||||
|
});
|
||||||
|
|
||||||
test('Report a post', async () => {
|
test('Report a post', async () => {
|
||||||
let betaCommunity = (await resolveBetaCommunity(beta)).community;
|
let betaCommunity = (await resolveBetaCommunity(beta)).community;
|
||||||
let postRes = await createPost(beta, betaCommunity.community.id);
|
let postRes = await createPost(beta, betaCommunity.community.id);
|
||||||
|
|
Loading…
Reference in a new issue