index.js
function flatten(test) {
      return {
        title: test.title,
        duration: test.duration,
        err: test.err ? Object.assign({}, test.err) : null,
      };
    }
function flatten(test) {
      return {
        title: test.title,
        duration: test.duration,
        err: test.err ? Object.assign({}, test.err) : null,
      };
    }
function flatten ( test ) { return { title : test . title , duration : test . duration , err : test . err ? Object . assign ( { } , test . err ) : null , } ; }
Flatten Mocha's `Test` object into plain JSON.
Flatten Mocha s Test object into plain JSON .