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

definition.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Machine } from '../src';
describe('definition', () => { it('should provide invoke definitions', () => { const invokeMachine = Machine({ id: 'invoke', invoke: [{ src: 'foo' }, { src: 'bar' }], initial: 'idle', states: { idle: {} } });
expect(invokeMachine.definition.invoke.length).toBe(2); });});
xstate

Version Info

Tagged at
2 years ago