UNPKG

jssm

Version:

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

16 lines (6 loc) 258 B
import {describe} from 'ava-spec'; const jssm = require('../../../build/jssm.es5.js'), sm = jssm.sm; describe('machine name', async it => { it('doesn\'t throw', t => t.notThrows(() => { const _foo = sm`machine_name: bob; a->b;`; }) ); });