Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:leei/vows

  • Loading branch information...
commit 27d5db30c2d06d41e42c8b9a584fe49af64ddd01 2 parents 1db40d4 + 6e63631
@leei authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/vows-test.js
View
6 test/vows-test.js
@@ -91,6 +91,12 @@ vows.describe("Vows").addBatch({
},
'after a successful `fs.read`': function (data) {
assert.match (data, /after a successful `fs.read`/);
+ },
+ 'should set this to the target of fs.read callback': function(data) {
+ assert.deepEqual(this, {});
+ },
+ 'should pass context as extra parameter': function(_, _, _, context) {
+ assert.equal(context.name, 'after a successful `fs.open`');
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.