fix(curriculum): Update description and test to ignore order (#53683)

Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com>
This commit is contained in:
Yixuan Dai
2024-02-15 21:38:07 +08:00
committed by GitHub
parent 743fc6831f
commit f50eb7bb9a

View File

@@ -9,7 +9,7 @@ dashedName: step-14
Inside the `map()`, add a `return` statement with backticks where you will interpolate all the elements responsible to displaying the song details.
Inside the backticks, create an `li` tag with the id `song-${song.id}` as the first attribute. Also, add the class `playlist-song` as the second attribute.
Inside the backticks, create an `li` element with an `id` attribute of `song-${song.id}` and a `class` attribute of `playlist-song`.
# --hints--
@@ -25,16 +25,16 @@ You should create an `li` tag inside the backticks.
assert.match(code, /return\s*`\s*<li\s*/)
```
Your opening `li` tag should have the `id` `song-${song.id}` as its first attribute and value.
Your opening `li` tag should have an `id` attribute set to `song-${song.id}`.
```js
assert.match(code, /return\s*`\s*<li\s*id\s*=\s*('|")song-\$\{song\.id\}\1\s*/)
assert.match(code, /return\s*`\s*<li[^>]*\sid\s*=\s*('|")song-\$\{song\.id\}\1[^>]*>\s*<\/li>\s*`;?/)
```
Your opening `li` tag should have the class `playlist-song` as its second attribute and value.
Your opening `li` tag should have a `class` attribute set to `playlist-song`.
```js
assert.match(code, /return\s*`\s*<li\s*id\s*=\s*('|")song-\$\{song\.id\}\1\s*class\s*=\s*('|")playlist-song\2\s*>\s*<\/li>\s*`;?/)
assert.match(code, /return\s*`\s*<li[^>]*\sclass\s*=\s*('|")playlist-song\1[^>]*>\s*<\/li>\s*`;?/)
```
# --seed--