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 {
88
88
testStart ( ) {
89
89
vscode . commands . executeCommand ( 'coderoad.run_test' )
90
90
} ,
91
+ testPass ( ) {
92
+ vscode . window . showWarningMessage ( 'FAIL' )
93
+ } ,
94
+ testFail ( ) {
95
+ vscode . window . showWarningMessage ( 'FAIL' )
96
+ } ,
91
97
// @ts -ignore
92
98
stepComplete : assign ( {
93
99
progress : ( context : CR . MachineContext ) : CR . Progress => {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export const machine = Machine<
116
116
} ,
117
117
} ,
118
118
TestPass : {
119
- onEntry : [ 'stepComplete' ] ,
119
+ onEntry : [ 'testPass' , ' stepComplete'] ,
120
120
on : {
121
121
NEXT : [
122
122
{
@@ -130,6 +130,7 @@ export const machine = Machine<
130
130
} ,
131
131
} ,
132
132
TestFail : {
133
+ onEntry : [ 'testFail' ] ,
133
134
after : {
134
135
0 : 'StageNormal'
135
136
} ,
You can’t perform that action at this time.
0 commit comments