obj.js 230 B

1234567891011
  1. var test = require('tape');
  2. var traverse = require('../');
  3. test('traverse an object with nested functions', function (t) {
  4. t.plan(1);
  5. function Cons (x) {
  6. t.equal(x, 10)
  7. };
  8. traverse(new Cons(10));
  9. });