Visitar URL original
address feedback · uswds/uswds@01b5fab · GitHub
Skip to content

Commit 01b5fab

Browse files
committed
address feedback
Signed-off-by: deebloo <deebloo@proton.me>
1 parent 26499b9 commit 01b5fab

3 files changed

Lines changed: 5 additions & 17 deletions

File tree

‎packages/usa-date-picker/src/index.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ const CALENDAR_YEAR_FOCUSED = `.${CALENDAR_YEAR_FOCUSED_CLASS}`;
8080

8181
const VALIDATION_MESSAGE = "Please enter a valid date";
8282

83+
// An array of Dates that represent each month in the year
8384
const MONTH_DATE_SEED = Array.from({ length: 12 }).map(
8485
(_, i) => new Date(0, i)
8586
);
8687

88+
// An array of Dates that represent each day of the week
8789
const DAY_OF_WEEK_DATE_SEED = Array.from({ length: 7 }).map(
8890
(_, i) => new Date(0, 0, i)
8991
);

‎packages/usa-date-picker/src/test/date-picker-i18n.spec.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const EVENTS = require("./events");
55
const DatePicker = require("../index");
66

77
const TEMPLATE = fs.readFileSync(
8-
path.join(__dirname, "/date-picker-i18n.template.html")
8+
path.join(__dirname, "/date-picker-default-date.template.html")
99
);
1010

1111
const datePickerSelector = () => document.querySelector(".usa-date-picker");
@@ -62,7 +62,7 @@ tests.forEach(({ name, selector: containerSelector }) => {
6262
assert.strictEqual(selectedMonth.innerHTML, "mayo");
6363
});
6464

65-
it("should display the correct aria label in the document language", () => {
65+
it("should display the correct aria-label in the document language", () => {
6666
changeLanguage("es");
6767

6868
EVENTS.click(button);
@@ -159,7 +159,7 @@ tests.forEach(({ name, selector: containerSelector }) => {
159159
assert.deepEqual(daysOfTheWeek, ["D", "L", "M", "X", "J", "V", "S"]);
160160
});
161161

162-
it("should display the aria label in the document language", () => {
162+
it("should display the aria-label in the document language", () => {
163163
changeLanguage("es");
164164

165165
EVENTS.click(button);

‎packages/usa-date-picker/src/test/date-picker-i18n.template.html‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)