From 5b311f9df1a1e8bb66a7ee5f5bf23d409df86396 Mon Sep 17 00:00:00 2001 From: "Jenna (Ju Hee) Han" <62906996+jenna5376@users.noreply.github.com> Date: Mon, 15 Apr 2024 00:52:28 -0400 Subject: [PATCH] fix(curriculum): spacing issue for step 17 of rpg project (#54362) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../62a23c1d505bfa13747c8a9b.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a23c1d505bfa13747c8a9b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a23c1d505bfa13747c8a9b.md index aa26806c5aa..200e4a3e3e5 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a23c1d505bfa13747c8a9b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a23c1d505bfa13747c8a9b.md @@ -49,7 +49,7 @@ Your first `span` element should be wrapped around the text `0`. const stat = document.querySelectorAll('.stat')[0]; const strong = stat?.querySelector('strong'); const span = strong?.querySelector('span'); -assert.equal(span.innerText, '0'); +assert.equal(span.innerText.trim(), '0'); ``` The text of your first `.stat` element should still be `XP: 0`. @@ -91,7 +91,7 @@ Your second `span` element should be wrapped around the text `100`. const stat = document.querySelectorAll('.stat')[1]; const strong = stat?.querySelector('strong'); const span = strong?.querySelector('span'); -assert.equal(span.innerText, '100'); +assert.equal(span.innerText.trim(), '100'); ``` The text of your second `.stat` element should still be `Health: 100`. @@ -133,7 +133,7 @@ Your third `span` element should be wrapped around the text `50`. const stat = document.querySelectorAll('.stat')[2]; const strong = stat?.querySelector('strong'); const span = strong?.querySelector('span'); -assert.equal(span.innerText, '50'); +assert.equal(span.innerText.trim(), '50'); ``` The text of your third `.stat` element should still be `Gold: 50`.