Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

.at() should return this

  • Loading branch information...
commit 2af7afd7a8ad9fae52700c55436c732300880dc9 1 parent 96fddd5
@eldargab authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  index.js
  2. +4 −0 test/flow.js
View
1  index.js
@@ -44,6 +44,7 @@ Flow.prototype.at = function (layer, fn) {
} finally {
this._at = null
}
+ return this
}
Flow.prototype.eval = function (task, cb) {
View
4 test/flow.js
@@ -185,6 +185,10 @@ describe('make-flow', function () {
req.should.have.ownProperty('foo')
req.foo.should.equal('foo')
})
+
+ it('Should return <this>', function () {
+ app.at('foo', function () {}).should.equal(app)
+ })
})
})
describe('Error handling', function () {

0 comments on commit 2af7afd

Please sign in to comment.
Something went wrong with that request. Please try again.