File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ export default {
8888 testStart ( ) {
8989 vscode . commands . executeCommand ( 'coderoad.run_test' )
9090 } ,
91+ testPass ( ) {
92+ vscode . window . showWarningMessage ( 'FAIL' )
93+ } ,
94+ testFail ( ) {
95+ vscode . window . showWarningMessage ( 'FAIL' )
96+ } ,
9197 // @ts -ignore
9298 stepComplete : assign ( {
9399 progress : ( context : CR . MachineContext ) : CR . Progress => {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export const machine = Machine<
116116 } ,
117117 } ,
118118 TestPass : {
119- onEntry : [ 'stepComplete' ] ,
119+ onEntry : [ 'testPass' , ' stepComplete'] ,
120120 on : {
121121 NEXT : [
122122 {
@@ -130,6 +130,7 @@ export const machine = Machine<
130130 } ,
131131 } ,
132132 TestFail : {
133+ onEntry : [ 'testFail' ] ,
133134 after : {
134135 0 : 'StageNormal'
135136 } ,
You can’t perform that action at this time.
0 commit comments