fix(curriculum): inconsistent logging in final step (#57689)

This commit is contained in:
Krzysztof G. 2024-12-23 08:58:06 +01:00 committed by GitHub
parent a5f149647a
commit 4f176f9c4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,10 +13,10 @@ And with this last step your grocery list is complete!
# --hints--
You should log the `shoppingList` array to the console.
You should call the `getShoppingListMsg` function inside of the `console.log`.
```js
assert.match(code, /console\.log\(\s*shoppingList\s*\)/);
assert.lengthOf(code.match(/console\.log\(\s*getShoppingListMsg\(\)\s*\)/g), 7);
```
# --seed--
@ -112,5 +112,5 @@ console.log("On second thought, maybe we should be more health conscious.");
shoppingList.shift();
shoppingList[0] = "Canola Oil";
console.log(shoppingList);
console.log(getShoppingListMsg());
```