]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/components/header/header.test.ts
Don't remember what this WIP was about
[rbdr/forum] / src / lib / components / header / header.test.ts
index 4107b2dfe1e3471b0e576bbe15911c2eae1bec2e..d7a780163bc5866d66d9cfb3d6a5a3c2d17636f5 100644 (file)
@@ -13,21 +13,16 @@ jest.mock('$lib/config/config.ts');
 import Header from './header.svelte';
 
 describe('Header component', () => {
+       test('Should not display topic if action is not set', () => {
+               const results = render(Header);
 
-  test('Should not display topic if action is not set', () => {
+               expect(results.queryByTitle('Reply')).toBe(null);
+       });
 
-    const results = render(Header);
+       test('Should display topic if action is set', () => {
+               enableTopicActions('d138d6d8-e669-42e7-995d-20a7fcc176f5');
+               const results = render(Header);
 
-    expect(results.queryByTitle('Reply'))
-      .toBe(null);
-  });
-
-  test('Should display topic if action is set', () => {
-
-    enableTopicActions('d138d6d8-e669-42e7-995d-20a7fcc176f5');
-    const results = render(Header);
-
-    expect(results.getByTitle('Reply'))
-      .toBeVisible();
-  });
+               expect(results.getByTitle('Reply')).toBeVisible();
+       });
 });