]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/components/actions/topic.test.ts
Adjust formatting of jest
[rbdr/forum] / src / lib / components / actions / topic.test.ts
index 0037a7f8b0506d969a5abc91c41d0bec755be4fa..9a17d3823288481b0f7aa8c2828bc79c6a0c79b6 100644 (file)
@@ -9,21 +9,19 @@ import '$lib/i18n';
 
 import Topic from './topic.svelte';
 
 
 import Topic from './topic.svelte';
 
-const internals = {
-  results: null
-};
-
 describe('Topic Actions component', () => {
 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'
+               );
+       });
 });
 });