"use strict";

const file = require("./file");

module.exports = function testExecutions(data, formatForSonar56 = false) {
  const aTestExecution = [{ _attr: { version: "1" } }];
  const testResults = data.testResults.map(file);

  return formatForSonar56
    ? { unitTest: aTestExecution.concat(testResults) }
    : { testExecutions: aTestExecution.concat(testResults) };
};

'use strict'

const file = require('./file')

module.exports = function testExecutions(data, formatForSonar56 = false) {
  const aTestExecution = [{_attr: {version: '1'}}]
  const testResults = data.testResults.map(file)

  return formatForSonar56
    ? { unitTest: aTestExecution.concat(testResults) }
    : { testExecutions: aTestExecution.concat(testResults) };
};

Undo changes done by prettier
Undo changes done by prettier

old habbits die hard! Ran the prettier on Atom on the whole file, this commit undoes it.
