{"size": 361, "ext": "js", "max_stars_repo_path": "index.spec.js", "max_stars_repo_name": "Casana/unit-testing-base-guide", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.spec.js", "max_issues_repo_name": "Casana/unit-testing-base-guide", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.spec.js", "max_forks_repo_name": "Casana/unit-testing-base-guide", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.7692307692, "max_line_length": 75, "alphanum_fraction": 0.6869806094}
import { dateFormatter } from "./index.js";

var today = new Date();
var formattedToday = new Intl.DateTimeFormat("en-US").format(today);

if (formattedToday === dateFormatter(today)) {
  console.log(`Test passed. Today´s date is: ${formattedToday}`);
} else {
  console.error(
    `Test failed: ${dateFormatter(today)} does NOT equal ${formattedToday}`
  );
}
