Source: test-run-dto.js

import TestResultDTO from './test-result-dto.js'

/**
 *
 */
class TestRunDTO {
  /**
   *
   * @param {any} json
   */
  constructor (json) {
    /** @private */
    this.json = json
  }

  /**
   * @type {TestResultDTO[]}
   */
  get results () {
    return this.json.results.map(r => new TestResultDTO(r))
  }

  /**
   * @type {TestRunDTO.TestRunStatus}
   */
  get status () {
    return this.json.status
  }
}

/** @enum {string} */
TestRunDTO.TestRunStatus = {
  COMPLETE: 'COMPLETE',
  ERROR: 'ERROR',
  IN_PROGRESS: 'IN_PROGRESS'
}

export default TestRunDTO