mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 15:28:26 -04:00
Fix numbering on hours in radioSelect test
This commit is contained in:
committed by
Chris Hill-Scott
parent
636cb6825b
commit
909f2d4678
@@ -68,11 +68,12 @@ describe('RadioSelect', () => {
|
|||||||
|
|
||||||
hours.forEach((hour, idx) => {
|
hours.forEach((hour, idx) => {
|
||||||
const hourLabel = getHourLabel(hour);
|
const hourLabel = getHourLabel(hour);
|
||||||
|
const num = idx + 1;
|
||||||
|
|
||||||
result +=
|
result +=
|
||||||
`<div class="multiple-choice">
|
`<div class="multiple-choice">
|
||||||
<input id="scheduled_for-${idx}" name="scheduled_for" type="radio" value="2019-05-${dayAsNumber}T${hour}:00:00.459156">
|
<input id="scheduled_for-${num}" name="scheduled_for" type="radio" value="2019-05-${dayAsNumber}T${hour}:00:00.459156">
|
||||||
<label for="scheduled_for-${idx}">
|
<label for="scheduled_for-${num}">
|
||||||
${day} at ${hourLabel}
|
${day} at ${hourLabel}
|
||||||
</label>
|
</label>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user