diff --git a/src/impl/english.js b/src/impl/english.js index 938730382..cf9379834 100644 --- a/src/impl/english.js +++ b/src/impl/english.js @@ -182,7 +182,6 @@ export function formatString(knownFormat) { ]), key = stringify(filtered), dateTimeHuge = "EEEE, LLLL d, yyyy, h:mm a"; - console.log(key); switch (key) { case stringify(Formats.DATE_SHORT): return "M/d/yyyy"; diff --git a/test/datetime/locale.test.js b/test/datetime/locale.test.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/impl/english.test.js b/test/impl/english.test.js index 936cc0f1f..adc794548 100644 --- a/test/impl/english.test.js +++ b/test/impl/english.test.js @@ -1,15 +1,6 @@ /* global test expect */ import * as Formats from "../../src/impl/formats"; -import { - formatRelativeTime, - formatString, - months, - monthsLong, - monthsNarrow, - monthsShort, - weekdays, - eras, -} from "../../src/impl/english"; +import { formatRelativeTime, formatString, weekdays, eras } from "../../src/impl/english"; test("today", () => { expect(formatRelativeTime("days", 0, "auto")).toBe("today"); @@ -89,41 +80,6 @@ test("1 hour ago", () => { expect(formatRelativeTime("hours", -1, "always", true)).toBe("1 hr. ago"); }); -test("months", () => { - expect(months("narrow")).toStrictEqual([...monthsNarrow]); - expect(months("short")).toStrictEqual([...monthsShort]); - expect(months("long")).toStrictEqual([...monthsLong]); - expect(months("numeric")).toStrictEqual([ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - ]); - expect(months("2-digit")).toStrictEqual([ - "01", - "02", - "03", - "04", - "05", - "06", - "07", - "08", - "09", - "10", - "11", - "12", - ]); - expect(months("lets see default")).toBe(null); -}); - test("formatString", () => { expect(formatString(Formats.DATE_SHORT)).toBe("M/d/yyyy"); expect(formatString(Formats.DATE_MED)).toBe("LLL d, yyyy");