Skip to content

Commit 4411523

Browse files
committed
Fix tests
1 parent 2b3a612 commit 4411523

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/features/stories/__tests__/StoriesActions.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { Chapter, Variant } from 'js-slang/dist/types';
22

33
import { addStoryEnv, clearStoryEnv, evalStory } from '../StoriesActions';
4-
import { ADD_STORY_ENV, CLEAR_STORY_ENV, EVAL_STORY } from '../StoriesTypes';
54

65
test('addStoryEnv generates correct action object', () => {
76
const action = addStoryEnv('testEnv', Chapter.SOURCE_4, Variant.DEFAULT);
87
expect(action).toEqual({
9-
type: ADD_STORY_ENV,
8+
type: addStoryEnv.type,
109
payload: {
1110
env: 'testEnv',
1211
chapter: Chapter.SOURCE_4,
@@ -18,7 +17,7 @@ test('addStoryEnv generates correct action object', () => {
1817
test('clearStoryEnv generates correct action object', () => {
1918
const action = clearStoryEnv();
2019
expect(action).toEqual({
21-
type: CLEAR_STORY_ENV,
20+
type: clearStoryEnv.type,
2221
payload: {
2322
env: undefined
2423
}
@@ -28,7 +27,7 @@ test('clearStoryEnv generates correct action object', () => {
2827
test('clearStoryEnv with environment generates correct action object', () => {
2928
const action = clearStoryEnv('default');
3029
expect(action).toEqual({
31-
type: CLEAR_STORY_ENV,
30+
type: clearStoryEnv.type,
3231
payload: {
3332
env: 'default'
3433
}
@@ -38,7 +37,7 @@ test('clearStoryEnv with environment generates correct action object', () => {
3837
test('evalStory generates correct action object', () => {
3938
const action = evalStory('testEnv', '1;');
4039
expect(action).toEqual({
41-
type: EVAL_STORY,
40+
type: evalStory.type,
4241
payload: {
4342
env: 'testEnv',
4443
code: '1;'

0 commit comments

Comments
 (0)