{"size": 502, "ext": "js", "max_stars_repo_path": "tests/framework/framework.js", "max_stars_repo_name": "LAKSHYAJAIN16/itsalright", "max_stars_repo_stars_event_min_datetime": "2022-02-09T07:52:18.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-09T07:52:18.000Z", "max_issues_repo_path": "tests/framework/framework.js", "max_issues_repo_name": "LAKSHYAJAIN16/itsalright", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/framework/framework.js", "max_forks_repo_name": "LAKSHYAJAIN16/itsalright", "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.08, "max_line_length": 53, "alphanum_fraction": 0.5976095618}
export default class IATest {
  constructor(
    fn,
    completionMessage = "SUCCESS : TEST PASSED",
    errorMessage = "ERROR : Test Failed"
  ) {
    this.fn = fn;
    this.completionMessage = completionMessage;
    this.errorMessage = errorMessage;
  }

  test() {
    try {
      //Call
      this.fn();

      //Submit completion message
      console.log(this.completionMessage);
    } catch (err) {
      //Submit Error Message
      console.error(`${this.errorMessage} : ${err}`);
    }
  }
}
