mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): improve test regex (#52710)
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ Within the button element in the `renderSongs` function, add an `onclick` attrib
|
||||
You should add an `onclick` attribute as the first attribute of the delete button and pass in `deleteSong(${song.id})`.
|
||||
|
||||
```js
|
||||
assert.match(code, /<button\s+onclick=('|")deleteSong\(\$\{song\.id\}\)('|")\s*class=('|")playlist-song-delete('|")\s*aria-label=('|")Delete\s*\$\{song\.title\}('|")>/)
|
||||
assert.match(code, /<button\s+onclick=('|")deleteSong\(\$\{song\.id\}\)\1\s*class=('|")playlist-song-delete\2\s*aria-label=('|")Delete\s*\$\{song\.title\}\3\s*>/)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user