From a7cf03c192470cbab13edeb1aec99e0c66dede10 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 1 May 2022 00:56:06 +0200 Subject: Update / use typescript --- src/stores/actions.test.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/stores/actions.test.js (limited to 'src/stores/actions.test.js') diff --git a/src/stores/actions.test.js b/src/stores/actions.test.js deleted file mode 100644 index c650536..0000000 --- a/src/stores/actions.test.js +++ /dev/null @@ -1,32 +0,0 @@ -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); - })(); - }); -}); -- cgit