From 17ea34e0845f415ed5f1b394a543fcabba240e87 Mon Sep 17 00:00:00 2001 From: Diem-Trang Pham <6422507+pdtrang@users.noreply.github.com> Date: Wed, 19 Nov 2025 01:30:37 -0600 Subject: [PATCH] fix(curriculum): trim spaces in Build a Storytelling App (#63951) --- .../671f99a5dc221afb86fa2dc0.md | 5 +++-- .../671fa22e99042b1e91fe9d2e.md | 15 +++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-storytelling-app/671f99a5dc221afb86fa2dc0.md b/curriculum/challenges/english/blocks/workshop-storytelling-app/671f99a5dc221afb86fa2dc0.md index f02039b59af..a2b83dbfdda 100644 --- a/curriculum/challenges/english/blocks/workshop-storytelling-app/671f99a5dc221afb86fa2dc0.md +++ b/curriculum/challenges/english/blocks/workshop-storytelling-app/671f99a5dc221afb86fa2dc0.md @@ -17,8 +17,9 @@ Begin by creating an `h1` element and give it a text `Want to hear a short story You should have an `h1` with the text `Want to hear a short story?`. ```js -assert.exists(document.querySelector('h1')); -assert.equal(document.querySelector('h1').textContent, 'Want to hear a short story?'); +const h1 = document.querySelector('h1'); +assert.exists(h1); +assert.equal(h1.textContent.trim(), 'Want to hear a short story?'); ``` # --seed-- diff --git a/curriculum/challenges/english/blocks/workshop-storytelling-app/671fa22e99042b1e91fe9d2e.md b/curriculum/challenges/english/blocks/workshop-storytelling-app/671fa22e99042b1e91fe9d2e.md index 25b661db329..44b222e6ce9 100644 --- a/curriculum/challenges/english/blocks/workshop-storytelling-app/671fa22e99042b1e91fe9d2e.md +++ b/curriculum/challenges/english/blocks/workshop-storytelling-app/671fa22e99042b1e91fe9d2e.md @@ -26,22 +26,25 @@ assert.equal(document.querySelectorAll('.btn-container > .btn').length, 3); You should have a button with the `id` of `scary-btn` and a text of `Scary Story`. ```js -assert.exists(document.querySelector('#scary-btn')); -assert.equal(document.querySelector('#scary-btn').textContent, 'Scary Story'); +const scaryBtn = document.querySelector('#scary-btn'); +assert.exists(scaryBtn); +assert.equal(scaryBtn.textContent.trim(), 'Scary Story'); ``` You should have a button with the `id` of `funny-btn` and a text of `Funny Story`. ```js -assert.exists(document.querySelector('#funny-btn')); -assert.equal(document.querySelector('#funny-btn').textContent, 'Funny Story'); +const funnyBtn = document.querySelector('#funny-btn'); +assert.exists(funnyBtn); +assert.equal(funnyBtn.textContent.trim(), 'Funny Story'); ``` You should have a button with the `id` of `adventure-btn` and a text of `Adventure Story`. ```js -assert.exists(document.querySelector('#adventure-btn')); -assert.equal(document.querySelector('#adventure-btn').textContent, 'Adventure Story'); +const adventureBtn = document.querySelector('#adventure-btn'); +assert.exists(adventureBtn); +assert.equal(adventureBtn.textContent.trim(), 'Adventure Story'); ``` # --seed--