Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Nov 13, 2024
1 parent bb0f58f commit ba995eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/formatters/formatMonthDropdown.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { es } from "date-fns/locale/es";

import { defaultLocale } from "../classes/DateLib";

import { formatMonthDropdown } from "./formatMonthDropdown";

const date = new Date(2022, 10, 21);

test("should return the formatted month dropdown label", () => {
expect(formatMonthDropdown(date.getMonth())).toEqual("November");
expect(formatMonthDropdown(date.getMonth(), defaultLocale)).toEqual(
"November"
);
});

describe("when a locale is passed in", () => {
Expand Down

0 comments on commit ba995eb

Please sign in to comment.