All files / server/test throws.js

100% Statements 1/1
100% Branches 1/1
100% Functions 1/1
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 121x                      
module.exports = async (cb, err = false) => {
  // try {
  //   const res = await cb();
  // } catch(err) {
  //   if (!(err instanceof Error)) {
  //     throw new Error('A non-error was thrown: ' + err);
  //   }
  //   return err;
  // }
  // throw new Error('No error was thrown');
};