UNPKG

jssm

Version:

A Javascript state machine with a simple API. Well tested, and typed with Flowtype. MIT License.

23 lines (11 loc) 580 B
/* eslint-disable max-len */ import {describe} from 'ava-spec'; const jssm = require('../../../build/jssm.es5.js'), sm = jssm.sm; describe('graph node lists', async it => { it('start states don\'t throw', t => t.notThrows(() => { const _a = sm`start_states: [a b c]; a->b->c->d;`; }) ); it('end states don\'t throw', t => t.notThrows(() => { const _a = sm`end_states: [a b c]; a->b->c->d;`; }) ); // comeback whargarbl // const overrider = make(` a->b->c; start_nodes: [c]; `); // it('start nodes override initial node', t => t.is(0, () => {}) ); });