error.js 251 B

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