Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re #86 Reconciling `.delays` for `_wait` tag

  • Loading branch information...
commit 73a6223a879f4be8d40fb35f00a6a53e068c4e89 1 parent 439715d
@bemson authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/api.tag.wait.js
View
16 test/api.tag.wait.js
@@ -65,6 +65,22 @@ describe( '_wait tag', function () {
waitSpy.firstCall.args.should.have.length(0);
});
+ it( 'should be reflected in `.state.delays`, per state', function () {
+ salt = new Salt({
+ has: {
+ _wait: true
+ },
+ nohas: {}
+ });
+ salt.state.delays.should
+ .be.a('boolean')
+ .and.not.be.ok;
+ salt.go('//has');
+ salt.state.delays.should.be.ok;
+ salt.go('//nohas');
+ salt.state.delays.should.not.be.ok;
+ });
+
it( 'should ignore objects', function () {
salt = new Salt({
_wait: {}
Please sign in to comment.
Something went wrong with that request. Please try again.