]> git.r.bdr.sh - rbdr/forum/blobdiff - src/components/topic/topic.test.js
Update documentation
[rbdr/forum] / src / components / topic / topic.test.js
index 83eeba3cbc611e4f04267a26d549c1cf6abeca79..b4071b5ef1410f9f30e34825a93f6e21ae09b795 100644 (file)
@@ -105,6 +105,14 @@ describe('Topic component', () => {
       .toBeVisible();
   });
 
       .toBeVisible();
   });
 
+  test('Should send index and count to posts', () => {
+
+    expect(internals.results.getByTitle('Post 1 of 2 by past_user'))
+      .toBeVisible();
+    expect(internals.results.getByTitle('Post 2 of 2 by future_user'))
+      .toBeVisible();
+  });
+
   describe('Forum link', () => {
 
     test('Should show forum if the post has one', () => {
   describe('Forum link', () => {
 
     test('Should show forum if the post has one', () => {