From ba995eb103c0c64a27d352a3b067e83beb6f16fe Mon Sep 17 00:00:00 2001 From: Giampaolo Bellavite Date: Wed, 13 Nov 2024 18:56:59 -0500 Subject: [PATCH] Update test --- src/formatters/formatMonthDropdown.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/formatters/formatMonthDropdown.test.ts b/src/formatters/formatMonthDropdown.test.ts index 58133b6179..b2613cde73 100644 --- a/src/formatters/formatMonthDropdown.test.ts +++ b/src/formatters/formatMonthDropdown.test.ts @@ -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", () => {