(context: T.MachineContext)
| 72 | } |
| 73 | }, |
| 74 | editorLoadSolution(context: T.MachineContext): void { |
| 75 | const step: TT.Step | null = selectors.currentStep(context) |
| 76 | // tell editor to load solution commit |
| 77 | if (step && step.solution) { |
| 78 | editorSend({ |
| 79 | type: 'EDITOR_SOLUTION_ENTER', |
| 80 | payload: { |
| 81 | position: { |
| 82 | stepId: step.id, |
| 83 | levelId: context.position.levelId, |
| 84 | complete: false, |
| 85 | }, |
| 86 | actions: step.solution, |
| 87 | }, |
| 88 | }) |
| 89 | } |
| 90 | }, |
| 91 | validateSetup() { |
| 92 | editorSend({ |
| 93 | type: 'EDITOR_VALIDATE_SETUP', |
nothing calls this directly
no test coverage detected