{"size": 325, "ext": "js", "max_stars_repo_path": "test/loader.test.js", "max_stars_repo_name": "santhoshtr/banana-i18n-loader", "max_stars_repo_stars_event_min_datetime": "2020-09-16T04:23:55.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-16T04:23:55.000Z", "max_issues_repo_path": "test/loader.test.js", "max_issues_repo_name": "santhoshtr/banana-i18n-loader", "max_issues_repo_issues_event_min_datetime": "2021-03-09T22:34:43.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T18:54:43.000Z", "max_forks_repo_path": "test/loader.test.js", "max_forks_repo_name": "santhoshtr/banana-i18n-loader", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 32.5, "max_line_length": 89, "alphanum_fraction": 0.6430769231}
import compiler from "./loader.js";

test("Resolves fallbacks and contains all messages", async () => {
  const stats = await compiler("i18n/uk.json");
  const output = stats.toJson().modules[0].source;
  expect(output).toBe(
    '{"msg-one":"uk-one","msg-two":"uk-two","msg-three":"ru-three","msg-four":"en-four"}'
  );
});
