source:
node_modules/traverse/test/obj.js@
65b6638
Last change on this file since 65b6638 was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 222 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | 'use strict'; |
2 | ||
3 | var test = require('tape'); | |
4 | var traverse = require('../'); | |
5 | ||
6 | test('traverse an object with nested functions', function (t) { | |
7 | t.plan(1); | |
8 | ||
9 | function Cons(x) { | |
10 | t.equal(x, 10); | |
11 | } | |
12 | traverse(new Cons(10)); | |
13 | }); |
Note:
See TracBrowser
for help on using the repository browser.