From ebde790dc7167c8d8799b1b7fbfd92828ec8808d Mon Sep 17 00:00:00 2001 From: agilan11 <140779703+agilan11@users.noreply.github.com> Date: Wed, 12 Mar 2025 18:25:17 +0530 Subject: [PATCH] fix(curriculum): update test to allow flexible spacing in error message assertion (#59225) --- .../641daae5e18eae4b562633e4.md | 2 +- .../workshop-fcc-authors-page/641daae5e18eae4b562633e4.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index cbdb4db3b3d..f46ae90fdf6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -41,7 +41,7 @@ assert.match(code, /(`|"|')\s*
/) Your `p` element should have the text `"There was an error loading the authors"`. ```js -assert.match(code, /(`|"|')
There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) +assert.match(code, /(`|"|')
\s*There\s+was\s+an\s+error\s+loading\s+the\s+authors\s*<\/p>\s*\1\s*;?/) ``` diff --git a/curriculum/challenges/english/25-front-end-development/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/english/25-front-end-development/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md index d7cd7cbe354..fdf1627c540 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -41,7 +41,7 @@ assert.match(code, /(`|"|')\s*
/) Your `p` element should have the text `"There was an error loading the authors"`. ```js -assert.match(code, /(`|"|')
There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) +assert.match(code, /(`|"|')
\s*There\s+was\s+an\s+error\s+loading\s+the\s+authors\s*<\/p>\s*\1\s*;?/) ```