Permalink
Browse files

also check .bind

  • Loading branch information...
1 parent 98acde1 commit f4ab321239ecc2c89aa6b147685e181788b0e6f8 @substack committed Sep 1, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/foo.js
View
@@ -16,7 +16,7 @@ Foo.prototype.beep = function () {
};
test('funstantiate foo', function (t) {
- t.plan(6);
+ t.plan(8);
var obj = new Foo(4);
var fobj = funstance(obj, function (n) {
@@ -31,6 +31,9 @@ test('funstantiate foo', function (t) {
t.equal(fobj.call(null, 25), 100);
t.equal(fobj.apply(null, [64]), 256);
+ t.equal(fobj.bind(null, 0.25)(), 1);
+
t.ok(!obj.call);
t.ok(!obj.apply);
+ t.ok(!obj.bind);
});

0 comments on commit f4ab321

Please sign in to comment.