From a6909bf85af6b396477d5dbded963c3ff7d51d63 Mon Sep 17 00:00:00 2001 From: Soham Tembhurne <82658685+sohamtembhurne@users.noreply.github.com> Date: Mon, 29 Jan 2024 21:08:35 +0530 Subject: [PATCH] fix(curriculum): update tests to allow for multiple valid solutions (#53361) Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- .../63e042661ad2663f0d468740.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-modern-javascript-methods-by-building-football-team-cards/63e042661ad2663f0d468740.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-modern-javascript-methods-by-building-football-team-cards/63e042661ad2663f0d468740.md index dff305f1421..446855e99a0 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-modern-javascript-methods-by-building-football-team-cards/63e042661ad2663f0d468740.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-modern-javascript-methods-by-building-football-team-cards/63e042661ad2663f0d468740.md @@ -15,7 +15,7 @@ Use object destructuring to access the `coachName` value. ```js -assert.match(code, /const\s*{\s*coachName\s*}\s*=\s*myFavoriteFootballTeam\.headCoach\s*/) +assert.match(code, /const\s*{\s*(coachName\s*}\s*=\s*myFavoriteFootballTeam\.headCoach|headCoach\s*:\s*{\s*coachName\s*}\s*}\s*=\s*myFavoriteFootballTeam)\s*;?/) ```