Skip to content

Commit

Permalink
chore(test): update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Dec 8, 2024
1 parent 203fc22 commit 3db609c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/Dropdown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ test("should display the year dropdown", () => {
});

test("should disable the months before startMonth", () => {
const disablesMonth = [
const disabledMonth = [
"January",
"February",
"March",
"April",
"May",
"June"
];
for (const month of disablesMonth) {
for (const month of disabledMonth) {
expect(
within(monthDropdown()).getByRole("option", { name: month })
).toBeDisabled();
Expand All @@ -41,8 +41,8 @@ test("should disable the months before startMonth", () => {

test("should disable the months after endMonth", async () => {
await user.selectOptions(yearDropdown(), "2025");
const disablesMonth = ["November", "December"];
for (const month of disablesMonth) {
const disabledMonth = ["November", "December"];
for (const month of disabledMonth) {
expect(
within(monthDropdown()).getByRole("option", { name: month })
).toBeDisabled();
Expand Down

0 comments on commit 3db609c

Please sign in to comment.