Permalink
Browse files

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

  • Loading branch information...
2 parents 1db40d4 + 6e63631 commit 27d5db30c2d06d41e42c8b9a584fe49af64ddd01 @leei committed Nov 12, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/vows-test.js
View
@@ -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`');
}
}
}

0 comments on commit 27d5db3

Please sign in to comment.