Skip to content

Commit 598534e

Browse files
authored
fix(curriculum): allow newlines in move review page tests (freeCodeCamp#60689)
1 parent d7d027a commit 598534e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/25-front-end-development/lab-movie-review-page/67ef8f695db52583424bd118.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The `span` element inside the rating paragraph should have ten stars, either fil
8282
const spanEl = document.querySelector("main p:nth-of-type(2) span");
8383
const fullRatingText = document.querySelector("main p:nth-of-type(2)")?.textContent.replace(/\s+/g, ' ').trim();
8484

85-
assert.match(spanEl?.innerText, /^[⭐☆]{10}$/);
85+
assert.match(spanEl?.innerText.trim(), /^[⭐☆]{10}$/);
8686
assert.match(fullRatingText, /Movie Rating:?\s*[⭐☆]{10}\s*\(\s*\d+(?:\.\d+)?\s*\/\s*10\s*\)$/);
8787
```
8888

0 commit comments

Comments
 (0)