X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/a7cf03c192470cbab13edeb1aec99e0c66dede10..be1ce532b26aea4e3e2258da78849bd245f7f78b:/src/lib/components/actions/topic.test.ts diff --git a/src/lib/components/actions/topic.test.ts b/src/lib/components/actions/topic.test.ts index 0037a7f..9a17d38 100644 --- a/src/lib/components/actions/topic.test.ts +++ b/src/lib/components/actions/topic.test.ts @@ -9,21 +9,19 @@ import '$lib/i18n'; import Topic from './topic.svelte'; -const internals = { - results: null -}; - describe('Topic Actions component', () => { - - test('Should link to reply page', () => { - - const results = render(Topic, { props: { - actions: { - id: '8ebaa211-fd9b-423a-8b4f-b57622007fde' - } - } }); - - expect(results.getByTitle('Reply').closest('a')) - .toHaveAttribute('href', '/reply/8ebaa211-fd9b-423a-8b4f-b57622007fde'); - }); + test('Should link to reply page', () => { + const results = render(Topic, { + props: { + actions: { + id: '8ebaa211-fd9b-423a-8b4f-b57622007fde' + } + } + }); + + expect(results.getByTitle('Reply').closest('a')).toHaveAttribute( + 'href', + '/reply/8ebaa211-fd9b-423a-8b4f-b57622007fde' + ); + }); });