diff --git a/change/@microsoft-fast-foundation-6f5094dd-7c63-4ed7-843c-b40c51cb6744.json b/change/@microsoft-fast-foundation-6f5094dd-7c63-4ed7-843c-b40c51cb6744.json new file mode 100644 index 00000000000..20ec752f3bf --- /dev/null +++ b/change/@microsoft-fast-foundation-6f5094dd-7c63-4ed7-843c-b40c51cb6744.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix: February tests are failing in calendar tests", + "packageName": "@microsoft/fast-foundation", + "email": "robarb@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/web-components/fast-foundation/src/calendar/calendar.spec.md b/packages/web-components/fast-foundation/src/calendar/calendar.spec.md index 1d072f7fb34..675bd1fbe48 100644 --- a/packages/web-components/fast-foundation/src/calendar/calendar.spec.md +++ b/packages/web-components/fast-foundation/src/calendar/calendar.spec.md @@ -176,7 +176,7 @@ Tests include - Returns the correct number of weeks - Highlights the current date - month info - - Correct number of days. 31 for January, 28 for Febuary, 29 for Febuary on a leap year + - Correct number of days. 31 for January, 28 for February, 29 for February on a leap year - Month starts on the correct first day - labels - Month labeling. Correct labeling in different formats diff --git a/packages/web-components/fast-foundation/src/calendar/calendar.spec.ts b/packages/web-components/fast-foundation/src/calendar/calendar.spec.ts index f66223383da..78de57f2b56 100644 --- a/packages/web-components/fast-foundation/src/calendar/calendar.spec.ts +++ b/packages/web-components/fast-foundation/src/calendar/calendar.spec.ts @@ -147,7 +147,7 @@ describe("Calendar", () => { it("Should return this month by default for getMonth()", () => { const formatter = new DateFormatter(); const today = new Date(); - const months = ["January", "Febuary", "March", "April", "May", "June", + const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; expect(formatter.getMonth()).to.equal(months[today.getMonth()]); @@ -275,7 +275,7 @@ describe("Calendar", () => { await disconnect(); }); - it("Should be 28 days in Febuary", async () => { + it("Should be 28 days in February", async () => { const { element, disconnect } = await setup({month: 2, year: 2021}); const info = (element as Calendar).getMonthInfo(); @@ -288,7 +288,7 @@ describe("Calendar", () => { await disconnect(); }); - it("Should be 29 days in Febuary for a leap year", async () => { + it("Should be 29 days in February for a leap year", async () => { const { element, disconnect } = await setup({month: 2, year: 2020}); const info = (element as Calendar).getMonthInfo(); @@ -313,7 +313,7 @@ describe("Calendar", () => { await disconnect(); }); - it("Should start on Monday for Febuary 2021", async () => { + it("Should start on Monday for February 2021", async () => { const { element, disconnect } = await setup({month: 2, year: 2021}); const info = (element as Calendar).getMonthInfo();