mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): spacing issue for step 17 of rpg project (#54362)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
parent
75058e654a
commit
5b311f9df1
@ -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`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user