error.js 256 B

1234567891011
  1. var test = require('tape');
  2. var traverse = require('../');
  3. test('traverse an Error', function (t) {
  4. var obj = new Error("test");
  5. var results = traverse(obj).map(function (node) {});
  6. t.same(results, { message: 'test' });
  7. t.end();
  8. });