Skip to content

Commit

Permalink
three lines of coverage left :D :D
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Jul 5, 2017
1 parent ea9fe40 commit 4748e37
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/lib/index.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset='utf-8' />
<title>jssm 3.1.11 | Documentation</title>
<title>jssm 3.1.12 | Documentation</title>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' type='text/css' rel='stylesheet' />
<link href='assets/style.css' type='text/css' rel='stylesheet' />
Expand All @@ -14,7 +14,7 @@
<div class='fixed xs-hide fix-3 overflow-auto max-height-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>jssm</h3>
<div class='mb1'><code>3.1.11</code></div>
<div class='mb1'><code>3.1.12</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "3.1.11",
"version": "3.1.12",
"engines": {
"node": ">=6.0.0"
},
Expand Down
17 changes: 17 additions & 0 deletions src/js/tests/general.js
Expand Up @@ -229,6 +229,23 @@ describe('Complex stop light', async it => {



describe('list exit actions', async it => {

const machine = new jssm.machine({
initial_state: 'off',
transitions:[ { from:'off', to:'red', action:'on' }, { from:'red', to:'off',action:'off' } ]
});

it('shows "on" from off as default', t => t.is('on', machine.list_exit_actions()[0] ) );
it('shows "on" from off', t => t.is('on', machine.list_exit_actions('off')[0] ) );
it('shows "off" from red', t => t.is('off', machine.list_exit_actions('red')[0] ) );

});





describe('probable exits for', async it => {

const machine = new jssm.machine({
Expand Down

0 comments on commit 4748e37

Please sign in to comment.