From 2e8cef667316b625b250148f5326d265ac5e28c3 Mon Sep 17 00:00:00 2001 From: a2937 Date: Wed, 20 Mar 2024 14:04:43 -0400 Subject: [PATCH] fix(curriculum) : remove typo in test code Technical Documentation Project (#54151) --- .../build-a-technical-documentation-page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md b/curriculum/challenges/english/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md index 5799892069a..992be92469a 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md @@ -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).