Fix testing for Step 28 of Building a fCC Authors Page #54654
Labels
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
status: PR in works
Work in Progress (WIP) Issues.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the Issue
The code provided below does not pass, even though it should.
The test does not allow for an optional whitespace between the backticks/single or double quotation marks and the element - in this case a paragraph element.
The hint message does not suggest that campers keep the code in one line. In fact, throughout all the curricula, I've been under the impression that creating several lines for setting
.innerHTML
improves readability, and is, therefore, good practice.So, I don't see any reasons why the tests shouldn't allow this formatting.
Since I was not sure whether my code generates an essential difference on the UI/Webpage, I tested it. There was no difference.
So, I thought this might be a bug in testing.
I filed a PR on this issue.
I am quite new to contributing and still learning.
Please let me know if there is anything I've done that did not follow good practice.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-fetch-and-promises-by-building-an-fcc-authors-page/step-28
Your code
Expected behavior
The test does not allow for an optional whitespace between the backticks and the added element.
It should.
Screenshots
System
Additional context
No response
The text was updated successfully, but these errors were encountered: