fix(curriculum) : remove typo in test code Technical Documentation Project (#54151)

This commit is contained in:
a2937
2024-03-20 14:04:43 -04:00
committed by GitHub
parent aacfb281fb
commit 2e8cef6673
@@ -200,7 +200,7 @@ const linkText = Array.from(document.querySelectorAll('.nav-link')).map(el =>
el.innerText?.trim().toUpperCase()
)
const remainder = headerText.filter(str => linkText.indexOf(str) === -1)
assert(headerText.length > 0 && headerText.length > 0 && remainder.length === 0)
assert(headerText.length > 0 && linkText.length > 0 && remainder.length === 0)
```
Each `.nav-link` should have an `href` attribute that links to its corresponding `.main-section` (e.g. If you click on a `.nav-link` element that contains the text "Hello world", the page navigates to a `section` element with that id).