Skip to content

Commit

Permalink
fix: Fixing February typo (#5553)
Browse files Browse the repository at this point in the history
* fix: February tests are failing in calendar tests

* Change files
  • Loading branch information
robarbms authored Feb 1, 2022
1 parent 48779ab commit 72efc89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 72efc89

Please sign in to comment.