diff options
Diffstat (limited to 'src/stores/actions.test.js')
| -rw-r--r-- | src/stores/actions.test.js | 32 |
1 files changed, 0 insertions, 32 deletions
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); - })(); - }); -}); |