File tree Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ export interface MachineStateSchema {
102102 Load : { }
103103 Normal : { }
104104 TestRunning : { }
105- TestPass : { }
106- TestFail : { }
107105 StepNext : { }
108106 LevelComplete : { }
109107 LoadNext : { }
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ const styles = {
9090interface PageProps {
9191 context : T . MachineContext
9292 send ( action : T . Action ) : void
93- state : string // 'Normal' | 'TestRunning' | 'TestFail' | 'TestPass' | ' Level.LevelComplete'
93+ state : string // 'Normal' | 'TestRunning' | 'Level.LevelComplete'
9494}
9595
9696/**
Original file line number Diff line number Diff line change @@ -180,30 +180,19 @@ export const createMachine = (options: any) => {
180180 onEntry : [ 'testStart' ] ,
181181 on : {
182182 TEST_PASS : {
183- target : 'TestPass ' ,
184- actions : [ 'testPass' ] ,
183+ target : 'StepNext ' ,
184+ actions : [ 'testPass' , 'updateStepPosition' ] ,
185185 } ,
186186 TEST_FAIL : {
187- target : 'TestFail ' ,
187+ target : 'Normal ' ,
188188 actions : [ 'testFail' ] ,
189189 } ,
190190 TEST_ERROR : {
191- target : 'TestFail ' ,
191+ target : 'Normal ' ,
192192 actions : [ 'testFail' ] ,
193193 } ,
194194 } ,
195195 } ,
196- TestPass : {
197- onExit : [ 'updateStepPosition' ] ,
198- after : {
199- 0 : 'StepNext' ,
200- } ,
201- } ,
202- TestFail : {
203- after : {
204- 0 : 'Normal' ,
205- } ,
206- } ,
207196 StepNext : {
208197 onEntry : [ 'stepNext' ] ,
209198 on : {
You can’t perform that action at this time.
0 commit comments