X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/47b0bfe47e6f13d549897149b0abc4a72ba8ac88..fb76052a02708a8fafa310d99d7d7b403b4b7ad8:/src/components/topic/topic.test.js?ds=inline diff --git a/src/components/topic/topic.test.js b/src/components/topic/topic.test.js index 83eeba3..b4071b5 100644 --- a/src/components/topic/topic.test.js +++ b/src/components/topic/topic.test.js @@ -105,6 +105,14 @@ describe('Topic component', () => { .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', () => {