mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-08-31 01:14:08 +08:00
fix(curriculum): clarify option count in weather app hint (#69282)
This commit is contained in:
@@ -333,7 +333,7 @@ assert.strictEqual(
|
||||
);
|
||||
```
|
||||
|
||||
Inside the `select` element there should be 6 `option` elements, one for each of the following cities: Paris, London, Tokyo, Los Angeles, Chicago, New York.
|
||||
In addition to the empty first option, the `select` element should contain 6 `option` elements, one for each of the following cities: Paris, London, Tokyo, Los Angeles, Chicago, New York.
|
||||
|
||||
```js
|
||||
['Paris', 'London', 'Tokyo', 'Los Angeles', 'Chicago', 'New York'].forEach(
|
||||
@@ -342,7 +342,7 @@ Inside the `select` element there should be 6 `option` elements, one for each of
|
||||
`select > option[value="${city.toLowerCase()}"]`
|
||||
);
|
||||
assert.exists(el);
|
||||
assert.strictEqual(el.innerText.trim(), city);
|
||||
assert.strictEqual(el.textContent.trim(), city);
|
||||
}
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user