Permalink
Browse files

Re #86 Reconciling `.state.fwds` for `_next` tag

  • Loading branch information...
1 parent 5acb958 commit 439715d7c4d0f7d6ac390379ff4eb286a3252165 @bemson committed Feb 21, 2014
Showing with 17 additions and 0 deletions.
  1. +17 −0 test/api.tag.next.js
View
@@ -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 () {

0 comments on commit 439715d

Please sign in to comment.