]> Untitled Git - lemmy.git/blobdiff - api_tests/src/post.spec.ts
Isomorphic docker (#1124)
[lemmy.git] / api_tests / src / post.spec.ts
similarity index 98%
rename from ui/src/api_tests/post.spec.ts
rename to api_tests/src/post.spec.ts
index c2cbad6d5799dbe656df56912381fa2b18eca7a2..bf1c2ab30a1a59cf44ae6fdddd911cb7f6797322 100644 (file)
@@ -56,6 +56,10 @@ test('Create a post', async () => {
   expect(betaPost.community_local).toBe(true);
   expect(betaPost.creator_local).toBe(false);
   expect(betaPost.score).toBe(1);
+  expect(betaPost.name).toBe(postRes.post.name);
+  expect(betaPost.body).toBe(postRes.post.body);
+  expect(betaPost.url).toBe(postRes.post.url);
+  expect(betaPost.nsfw).toBe(postRes.post.nsfw);
 
   // Delta only follows beta, so it should not see an alpha ap_id
   let searchDelta = await searchPost(delta, postRes.post);