fix(curriculum): update tests to allow for multiple valid solutions (#53361)

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
Soham Tembhurne
2024-01-29 07:38:35 -08:00
committed by GitHub
co-authored by Krzysztof G.
parent 6e1ce3637e
commit a6909bf85a
@@ -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*;?/)
```