From 4161577bb520acf4515cd43c3160058b95d2e6a8 Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 21 Mar 2025 14:11:42 -0400 Subject: [PATCH] chore(tools): Ignore white space in challenge id testing (#59382) Co-authored-by: Oliver Eyton-Williams --- curriculum/test/test-challenges.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curriculum/test/test-challenges.js b/curriculum/test/test-challenges.js index 4621b130618..2b22b4fd430 100644 --- a/curriculum/test/test-challenges.js +++ b/curriculum/test/test-challenges.js @@ -208,9 +208,11 @@ async function setup() { } if (process.env.FCC_CHALLENGE_ID) { - console.log(`\nChallenge Id being tested: ${process.env.FCC_CHALLENGE_ID}`); + console.log( + `\nChallenge Id being tested: ${process.env.FCC_CHALLENGE_ID.trim()}` + ); const challengeIndex = challenges.findIndex( - challenge => challenge.id === process.env.FCC_CHALLENGE_ID + challenge => challenge.id === process.env.FCC_CHALLENGE_ID.trim() ); if (challengeIndex === -1) { throw new Error(