deno.land / x / xstate@xstate@4.33.6 / test / smoke.test.ts
12345678910111213141516171819202122232425262728293031import { Machine } from '../src';
describe('smoke test', () => { it('should work with built files', () => { expect(() => { return Machine({ id: 'light', initial: 'green', context: { canTurnGreen: true }, states: { green: { after: { 1000: 'yellow' } }, yellow: { after: { 1000: [{ target: 'red' }] } }, red: { after: [{ delay: 1000, target: 'green' }] } } }); }).not.toThrow(); });});
Version Info