{"size": 460, "ext": "js", "max_stars_repo_path": "src/libs/workerUtil.js", "max_stars_repo_name": "1i2hs/nc-data-processor", "max_stars_repo_stars_event_min_datetime": "2020-09-13T08:16:16.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-13T08:16:16.000Z", "max_issues_repo_path": "src/libs/workerUtil.js", "max_issues_repo_name": "1i2hs/nc-data-processor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/libs/workerUtil.js", "max_forks_repo_name": "1i2hs/nc-data-processor", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.9090909091, "max_line_length": 86, "alphanum_fraction": 0.6152173913}
function validateArticle(article) {
  const error = new Error(
    `The given article has an empty content. Please check whether it is valid or not.`
  );
  if (article === null || article === undefined) {
    throw error;
  }
  const { content, textContent } = article;
  if (
    content === null ||
    content === undefined ||
    textContent === null ||
    textContent === undefined
  ) {
    throw error;
  }
}

module.exports = {
  validateArticle,
};
