]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/stores/actions.test.ts
Use supabase
[rbdr/forum] / src / lib / stores / actions.test.ts
index c6505369b259631a8610dc249397f3ed1b9336f1..39e1f6eb22125bc7d1a23ebd5c403c484a32ff1e 100644 (file)
@@ -1,32 +1,25 @@
 import { enableTopicActions, disableTopicActions, topicActions } from './actions';
 
 describe('Topic actions and state', () => {
-
-  test('There should be no topic actions by default', () => {
-
-    topicActions.subscribe((actions) => {
-
-      expect(actions).toBe(undefined);
-    })();
-  });
-
-  test('enableTopicActions should set the topic id', () => {
-
-    enableTopicActions('free_hat');
-    topicActions.subscribe((actions) => {
-
-      expect(actions).toEqual({
-        id: 'free_hat'
-      });
-    })();
-  });
-
-  test('disableTopicActions should unset the topic id', () => {
-
-    disableTopicActions();
-    topicActions.subscribe((actions) => {
-
-      expect(actions).toEqual(undefined);
-    })();
-  });
+       test('There should be no topic actions by default', () => {
+               topicActions.subscribe((actions) => {
+                       expect(actions).toBe(undefined);
+               })();
+       });
+
+       test('enableTopicActions should set the topic id', () => {
+               enableTopicActions('free_hat');
+               topicActions.subscribe((actions) => {
+                       expect(actions).toEqual({
+                               id: 'free_hat'
+                       });
+               })();
+       });
+
+       test('disableTopicActions should unset the topic id', () => {
+               disableTopicActions();
+               topicActions.subscribe((actions) => {
+                       expect(actions).toEqual(undefined);
+               })();
+       });
 });