Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

also check .bind

  • Loading branch information...
commit f4ab321239ecc2c89aa6b147685e181788b0e6f8 1 parent 98acde1
James Halliday authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 test/foo.js
5 test/foo.js
@@ -16,7 +16,7 @@ Foo.prototype.beep = function () {
16 16 };
17 17
18 18 test('funstantiate foo', function (t) {
19   - t.plan(6);
  19 + t.plan(8);
20 20
21 21 var obj = new Foo(4);
22 22 var fobj = funstance(obj, function (n) {
@@ -31,6 +31,9 @@ test('funstantiate foo', function (t) {
31 31
32 32 t.equal(fobj.call(null, 25), 100);
33 33 t.equal(fobj.apply(null, [64]), 256);
  34 + t.equal(fobj.bind(null, 0.25)(), 1);
  35 +
34 36 t.ok(!obj.call);
35 37 t.ok(!obj.apply);
  38 + t.ok(!obj.bind);
36 39 });

0 comments on commit f4ab321

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