mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
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:
co-authored by
Krzysztof G.
parent
6e1ce3637e
commit
a6909bf85a
+1
-1
@@ -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*;?/)
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user