Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

failing nested test

  • Loading branch information...
commit b704b3d7afbcb263c99c3820904a04222378872c 1 parent 35688d5
@substack authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/nested.js
View
9 test/nested.js
@@ -0,0 +1,9 @@
+var pathway = require('../');
+var test = require('tap').test;
+
+test('object to array to object', function (t) {
+ var obj = { rows : [ { x: 52 }, { x: 41 }, { y: 12 }, { x: 50 } ] };
+ var xs = pathway(obj, [ 'rows', true, 'x' ]);
+ t.same(xs, [ 52, 41, 50 ]);
+ t.end();
+});
Please sign in to comment.
Something went wrong with that request. Please try again.