File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,8 @@ describe("Maze Reducer Tests", () => {
230
230
expect ( updatedState ) . toEqual ( expectedState ) ;
231
231
} ) ;
232
232
233
+ // TODO: stopVis
234
+
233
235
// TODO: randomizeWalls
234
236
235
237
it ( "Changes the size of the gird" , ( ) => {
Original file line number Diff line number Diff line change 6
6
CHANGE_ALGO ,
7
7
TOGGLE_MOVE_START ,
8
8
TOGGLE_MOVE_END ,
9
+ CHANGE_SPEED ,
9
10
} from "../../actions/menuActions/menuActions" ;
10
11
import { initialState } from "../../models/menu/initialState" ;
11
12
import { MenuState } from "../../models/menu" ;
@@ -92,5 +93,15 @@ describe("Menu Reducer Tests", () => {
92
93
expect ( updatedState ) . toEqual ( expectedState ) ;
93
94
} ) ;
94
95
95
- // TODO: changeSpeed
96
+ it ( "Change Speed Expected State" , ( ) => {
97
+ const action = {
98
+ type : CHANGE_SPEED ,
99
+ payload : 1 ,
100
+ } ;
101
+
102
+ const updatedState = menuReducer ( initialState , action ) ;
103
+ const expectedState : MenuState = { ...initialState , currentSpeed : 1 } ;
104
+
105
+ expect ( updatedState ) . toEqual ( expectedState ) ;
106
+ } ) ;
96
107
} ) ;
You can’t perform that action at this time.
0 commit comments