Skip to content

Commit

Permalink
Re #86 Reconciling .state.fwds for _next tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bemson committed Feb 21, 2014
1 parent 5acb958 commit 439715d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/api.tag.next.js
Expand Up @@ -115,6 +115,23 @@ describe( '_next tag', function () {
onSpy.should.have.been.calledWithExactly(arg);
});

it( 'should be reflected in `.state.fwds`, per state', function () {
salt = new Salt({
has: {
_next: 0,
_wait: true
},
nohas: {}
});
salt.state.fwds.should
.be.a('boolean')
.and.not.be.ok;
salt.go('//has');
salt.state.fwds.should.be.ok;
salt.go('//nohas');
salt.state.fwds.should.not.be.ok;
});

describe( 'prefixed with a ">"', function () {

it( 'should set a new destination state', function () {
Expand Down

0 comments on commit 439715d

Please sign in to comment.