()
| 58 | }); |
| 59 | |
| 60 | const makeAlwaysValid = () => |
| 61 | createFsm({ |
| 62 | id: "always-valid", |
| 63 | initialState: "on", |
| 64 | context: {}, |
| 65 | states: { |
| 66 | on: { toggle: "off" as const }, |
| 67 | off: { toggle: "on" as const }, |
| 68 | }, |
| 69 | }); |
| 70 | |
| 71 | // A FSM that transitions to "exploded" when it receives "trigger". |
| 72 | // Used to test invariant violations. |