Permalink
Browse files

array test passes too

  • Loading branch information...
1 parent 8d7c29c commit a9d4208756e335af45735baae7070466bdfd4e48 @substack committed Aug 21, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/array.js
View
@@ -0,0 +1,14 @@
+var test = require('tap').test;
+var traverse = require('traverse');
+var garbage = require('../');
+
+test('array', function (t) {
+ t.plan(30 * 2);
+ for (var i = 0; i < 30; i++) {
+ var xs = garbage.array(5);
+ t.ok(Array.isArray(xs));
+ t.ok(traverse.nodes(xs).length <= 5, 'too many objects');
+ }
+
+ t.end();
+});

0 comments on commit a9d4208

Please sign in to comment.