deno.land / x / xstate@xstate@4.33.6 / test / smoke.test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { 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(); });});
xstate

Version Info

Tagged at
2 years ago