Пример #1
0
  mapKeyValuesDeep((v, k) => {
    if (_.endsWith('Dir', k)) {
      const path = _.attempt(() => makeDir.sync(v))

      if (_.isError(path)) {
        console.error(`Error while creating folder ${v}`, path)
      }
    }
  }, result)
 hook.call(mycro, function(err) {
     fp.attempt(function() {
         t.ok(err instanceof Error, 'should error');
     });
     t.end();
 });