From f002f1b83599fb39a06baa8935cdc5791d93bf61 Mon Sep 17 00:00:00 2001 From: Ezoh Zhang <104738718+errantpianist@users.noreply.github.com> Date: Mon, 6 Oct 2025 19:33:52 +0100 Subject: [PATCH] fix(curriculum): enforce variable usage in sentence maker lab (#62078) Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> --- .../66c057041df6394ca796bf33.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/curriculum/challenges/english/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md b/curriculum/challenges/english/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md index 7295ea496a8..a80788cd495 100644 --- a/curriculum/challenges/english/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md +++ b/curriculum/challenges/english/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md @@ -133,6 +133,15 @@ const expected = `Once upon a time, there was a(n) ${_initialValues['adjective'] assert.strictEqual(firstStory, expected); ``` +You should assemble your first story using the variables you declared in the correct order. + +```js +assert.match( + __helpers.removeJSComments(code), + /firstStory\s*=\s*.*?adjective.*?noun.*?noun2.*?noun.*?place.*?adjective2.*?verb/ +); +``` + You should log your first story using the message `"First story: [firstStory]"`. ```js @@ -190,6 +199,15 @@ const expected = `Once upon a time, there was a(n) ${adjective} ${noun} who love assert.strictEqual(secondStory, expected); ``` +You should assemble your second story using the variables you declared in the correct order. + +```js +assert.match( + __helpers.removeJSComments(code), + /secondStory\s*=\s*.*?adjective.*?noun.*?noun2.*?noun.*?place.*?adjective2.*?verb/ +); +``` + You should log your second story using the format `"Second story: [secondStory]"`. ```js