Fix numbering on hours in radioSelect test

This commit is contained in:
Tom Byers
2020-07-16 16:06:48 +01:00
committed by Chris Hill-Scott
parent 636cb6825b
commit 909f2d4678

View File

@@ -68,11 +68,12 @@ describe('RadioSelect', () => {
hours.forEach((hour, idx) => {
const hourLabel = getHourLabel(hour);
const num = idx + 1;
result +=
`<div class="multiple-choice">
<input id="scheduled_for-${idx}" name="scheduled_for" type="radio" value="2019-05-${dayAsNumber}T${hour}:00:00.459156">
<label for="scheduled_for-${idx}">
<input id="scheduled_for-${num}" name="scheduled_for" type="radio" value="2019-05-${dayAsNumber}T${hour}:00:00.459156">
<label for="scheduled_for-${num}">
${day} at ${hourLabel}
</label>
</div>`;