mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 17:03:30 -05:00
fix(curriculum): Update column count test in Book Inventory App (#64620)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
@@ -54,7 +54,11 @@ assert.equal(document.querySelectorAll('table')?.length, 1);
|
||||
Your `table` element should have five columns.
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelectorAll('th')?.length, 5);
|
||||
const rows = document.querySelectorAll('tr');
|
||||
assert.isNotEmpty(rows);
|
||||
for (const row of rows) {
|
||||
assert.equal(row.children.length, 5);
|
||||
}
|
||||
```
|
||||
|
||||
Your first column should have the text `Title` as the heading.
|
||||
|
||||
Reference in New Issue
Block a user