mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): update tests for Football Teams step 25 to accept both types of functions (#54381)
This commit is contained in:
parent
706c479b35
commit
55940f0fa6
@ -24,7 +24,7 @@ assert.match(setPlayerCards.toString(), /arr\.map\(.*\)/);
|
||||
Your `.map()` method should take an empty callback function.
|
||||
|
||||
```js
|
||||
assert.match(code, /arr\.map\(\s*\(\s*\)\s*=>\s*\{\s*\}\s*\)/);
|
||||
assert.match(code, /arr\.map\(\s*(\(\s*\)\s*=>|function\s*\(\s*\))\s*\{\s*\}\s*\)/);
|
||||
```
|
||||
|
||||
You should use the `+=` operator on `playerCards.innerHTML`.
|
||||
@ -36,7 +36,7 @@ assert.match(setPlayerCards.toString(), /playerCards\.innerHTML\s*\+=/);
|
||||
You should assign `arr.map()` to the `playerCards.innerHTML` using the `+=` operator.
|
||||
|
||||
```js
|
||||
assert.match(code, /playerCards\.innerHTML\s*\+=\s*arr\.map\(\s*\(\s*\)\s*=>\s*\{\s*\}\s*\)/)
|
||||
assert.match(code, /playerCards\.innerHTML\s*\+=\s*arr\.map\(\s*(\(\s*\)\s*=>|function\s*\(\s*\))\s*\{\s*\}\s*\)/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user