<commit_before>import { expect } from "chai";
import LocaleUtils from "../../src/addons/LocaleUtils";

describe("LocaleUtils", () => {

  if (!global.Intl) {
    global.Intl = require("intl");
  }

  describe("formatMonthTitle", () => {
    it("should return month and day as string", () => {
      const date = new Date("2015-12-20");
      const formattedDate = LocaleUtils.formatMonthTitle(date);
      expect(formattedDate).to.equal("December 2015");
      const formattedDate_IT = LocaleUtils.formatMonthTitle(date, "it");
      expect(formattedDate_IT).to.equal("dicembre 2015");
    });
  });

  describe("formatWeekdayShort", () => {
    it("should return the short day name as string", () => {
      expect(LocaleUtils.formatWeekdayShort(0)).to.equal("Su");
      expect(LocaleUtils.formatWeekdayShort(0, "it")).to.equal("L");<commit_msg>Remove intl<commit_after>import { expect } from "chai";
import LocaleUtils from "../../src/addons/LocaleUtils";

describe("LocaleUtils", () => {

  describe("formatMonthTitle", () => {
    it("should return month and day as string", () => {
      const date = new Date("2015-12-20");
      const formattedDate = LocaleUtils.formatMonthTitle(date);
      expect(formattedDate).to.equal("December 2015");
      const formattedDate_IT = LocaleUtils.formatMonthTitle(date, "it");
      expect(formattedDate_IT).to.equal("dicembre 2015");
    });
  });

  describe("formatWeekdayShort", () => {
    it("should return the short day name as string", () => {
      expect(LocaleUtils.formatWeekdayShort(0)).to.equal("Su");
      expect(LocaleUtils.formatWeekdayShort(0, "it")).to.equal("L");
{'fraction_non_alphanumeric': 0.17484662576687116, 'fraction_numerical': 0.022085889570552148, 'mean_word_length': 4.096875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2105732', 'n_tokens_mistral': 529, 'n_tokens_neox': 493, 'n_words': 92}